Docs (4.0.0)
Views

class View

An abstract class that represents a view.

abstract

class View
extends ManagedObject

Description

The view is one of the main architectural components of a Desk application. It provides a method to render its encapsulated content, either directly or using a collection of built-in UI components.

Views can be rendered on their own (using app.render(), app.showPage(), or app.showDialog()) or included as content within another view. In most cases, a top-level view is rendered from the Activity.ready() method.

The View class can’t be used on its own. Instead, define views using the following classes and methods:

Use the View class itself as a type, along with ViewClass, when referencing variables or parameters that should refer to any other view.

Constructor

Type Members

  • type View.ViewPreset staticType definition for the object that can be used to initialize a preset view.

Instance Members

  • render(callback) abstractA method that should be implemented to render a View object.
  • requestFocus() abstractA method that should be implemented to request input focus on the view output element.
  • findViewContent(type) abstractA method that should be implemented to find matching components in the view hierarchy.
  • applyViewPreset(preset)Applies the provided preset properties to this object.

Inherited Members

Related