CustomModel
The script interface of one EasyBuilder X Custom Widget instance. The Custom Model defines its Properties, Methods, Events, optional internal Widgets, and JavaScript behavior. In the model's script, this is this instance's CustomModel interface.
A Custom Model may contain no internal Widgets. Its interface still exists and can encapsulate behavior through JavaScript.
Properties
| Property | Type | Description |
|---|---|---|
property | CustomPropertyAccess | Access custom Properties by their Name for JS Access. Read and write values, or monitor changes with $subscribe and $unsubscribe. Read-only. |
method | CustomMethodAccess | Invoke a custom Method by its Name for JS Access. A Method can package Actions that operate on internal Widgets. Read-only. |
event | CustomEventAccess | Access a custom Event by its Name for JS Access, then call that Event's emit function, for example this.event.ThresholdExceeded.emit(value). Read-only. |
widget | Container | The container of this Custom Widget. Shared UI classes such as Canvas and MouseArea can be added here. Read-only. |