class RenderContext
An abstract class that supports global view rendering, part of the global application context.
abstract
class RenderContext extends ManagedObject
Notes
- This class is implemented by a platform renderer, e.g. to render components 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 staticType definition for the callback that’s used for asynchronous rendering.
- type RenderContext.PlacementMode staticAn identifier that specifies a global rendering mode, part of RenderContext.PlacementOptions.
- type RenderContext.PlacementOptions staticType definition for global rendering placement options.
- interface RenderContext.OutputTransform staticAn interface for an object that represents transformations to be applied to an output element.
- interface RenderContext.OutputTransformer staticAn interface that describes an asynchronous transformer for a rendered output element.
- interface RenderContext.OutputEffect staticA platform-dependent effect that can be applied to a rendered output element.
- class Output staticAn object that encapsulates a rendered output element, created by the global rendering context.
- class RendererEvent staticA class that represents a render-related event.
- class DynamicRendererWrapper staticA class that’s used to render a view referenced by a property.
Instance Members
- getRenderCallback() abstractReturns a render callback for root view output; do not use directly.
- createObserver(target) abstractCreates a new renderer observer for the provided view object; do not use directly.
- transform(out) abstractCreates a new transformation object for the provided output, if supported.
- schedule(f, lowPriority?) abstractSchedules execution of the provided function in the render queue.
- clear() abstractClears all current root view output.
- remount() abstractRe-renders output, and relocates existing mounted view output if needed.
- animateAsync(out, transformer)Uses the provided output transformer to animate a rendered view.
Inherited Members
- emit(event)Emits an event, immediately calling all event handlers.
- emitChange(name?, data?)Emits a change event, an instance of ManagedChangeEvent.
- listen(handler)Adds a handler for all events emitted by this object.
- isUnlinked()Returns true if the object has been unlinked.
- unlink()Unlinks this managed object.
- beforeUnlink() protectedA method that’s called immediately before unlinking an object, can be overridden.
- attach(target, observer?) protectedAttaches the provided managed object to this object.
- autoAttach(propertyName, observer?) protectedObserves a property, so that any object assigned to it is attached immediately.