class WebRenderer
A renderer class that uses the DOM to render UI elements.
class WebRenderer extends RenderContext;
Constructor
new WebRenderer()
Creates a new render context instance, used byuseWebContext().
Type members
type WebRenderer.ViewportLocation static
Overrides for viewport location on the screen.type WebRenderer.DragRelativeEvent static
Type definition for an event emitted by thedrag-relativeeffect.
Instance members
modalFactory
The default modal factory.getRenderCallback()
Retrieves a render callback for root output.createObserver()
Attaches a renderer observer to the specified target element.clear()
Clears all output from the DOM.remount()
Re-renders all mounted content to appear in (new or existing) elements with corresponding ID.setTitle()
Sets the document title directly.setBackgrounds()
Sets the background colors for page and modal shader elements.setViewportLocation()
Overrides page and overlay element sizing, and updates viewport measurements.
Inherited members
render()
Renders a view as root, until the view object is unlinked.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.
