Classes
Placeholder
Placeholder
Represents a Placeholder, which is used to add a native view to the visual tree.
Summary
Constructors
Constructors
constructor
new Placeholder(): Placeholder
Returns Placeholder
Properties
creatingViewEvent
Static
String value used when hooking to creatingView event.
Methods
on
on(eventNames: string, callback: (args: EventData) => void, thisArg?: any): void
A basic method signature to hook an event listener (shortcut alias to the addEventListener method).
| Parameter | Default | Description |
eventNames | | stringString corresponding to events (e.g. "propertyChange"). Optionally could be used more events separated by `,` (e.g. "propertyChange", "change"). |
callback | | (args: EventData) => voidCallback function which will be executed when event is raised. |
thisArg | | anyAn optional parameter which will be used as `this` context for callback execution. |
Returns void
on(event: "creatingView", callback: (args: CreateViewEventData) => void, thisArg?: any): void
Raised when a creatingView event occurs.
| Parameter | Default | Description |
event | | "creatingView" |
callback | | (args: CreateViewEventData) => void |
thisArg | | any |
Returns void
- Previous
- ParserEventType
- Next
- Progress