class View
An abstract class that represents a view.
abstract class View extends ObservableObject;
Description
The view is one of the main architectural components of an application. It provides a method to render its encapsulated content, either directly or using a collection of built-in UI elements.
Views are typically expressed using functions that return view builders (i.e. ‘blueprints’ or templates that define a view with a particular configuration and content). Afterwards, views can be rendered on their own (using app.render()), included as content within another view, or used by an activity (setting its static view property).
Instance members
render() abstract
A method that should be implemented to render a View object.requestFocus() abstract
Requests input focus on the output element.findViewContent() abstract
Finds matching objects in the view hierarchy.
Inherited members
emit()
Emits an event, immediately calling all event handlers.emitChange()
Emits a change event.listen()
Adds a handler for all events emitted by this object.listenOnce()
Returns a promise for a single event with the provided name.listenAsync()
Adds a handler for all events emitted by this object, and returns an async iterable.observe()
Observes a property, a bound property from an attached parent, or an observable object.observeAsync()
Observes one or more targets asynchronously, batching or debouncing/throttling updates.attach() protected
Attaches the specified observable object to this object.isUnlinked()
Returns true if the object has been unlinked.unlink()
Unlinks this observable object.beforeUnlink() protected
A method that’s called immediately before unlinking an object, can be overridden.
Related
class UIElement abstract
The base class for built-in UI view elements.class Widget
A base class that represents a reusable UI component with encapsulated state.
