class RenderContext
An abstract class that supports global view rendering, part of the global application context.
abstract class RenderContext extends ObservableObject;
Notes
- This class is implemented by a platform renderer, e.g. to render UI elements to the browser DOM, or in-memory (for testing). Most of these methods should not be used directly by an application.
- The current renderer, once initialized, should be available as app.renderer.
Type members
type RenderContext.RenderCallback static
Type definition for the callback that’s used for asynchronous rendering.type RenderContext.PlacementOptions static
Type definition for global rendering placement options.type RenderContext.PlacementMode static
An identifier that specifies a global rendering mode, part of RenderContext.PlacementOptions.class Output static
An object that encapsulates a rendered output element, created by the global rendering context.class ViewController static
A class that’s used to render a view referenced by a property.interface RenderContext.UIElementRenderer static
Interface for platform-specific state queries on UI element observers.
Instance members
getRenderCallback() abstract
Returns a render callback for root view output; do not use directly.createObserver() abstract
Creates a new renderer observer for the provided view object; do not use directly.clear() abstract
Clears all current root view output.remount() abstract
Re-renders output, and relocates existing mounted view output if needed.setTitle() abstract
Overrides the current window title, if supported.modalFactory abstract
The current modal factory.render()
Renders a view as root, until the view object is unlinked.
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.
