API Status: Development
- Description:
API Status: Development
- Source:
Methods
get(path) → {module:nmodule/bajaui/rc/model/UxModel|module:nmodule/bajaui/rc/baja/binding/Binding|undefined}
- Source:
Parameters:
| Name | Type | Description |
|---|---|---|
path |
string | Array.<string> |
Returns:
the UxModel
kid by the given name. If an array of names are given, will follow the
path down through the UxModel structure.
- Type
- module:nmodule/bajaui/rc/model/UxModel | module:nmodule/bajaui/rc/baja/binding/Binding | undefined
getBindingList() → {module:nmodule/bajaui/rc/model/BindingList}
- Source:
Returns:
getFormFactor() → {string|undefined}
- Source:
- Since:
- Niagara 4.14
Returns:
the form factor this widget should be constructed with, if known
- Type
- string | undefined
getKids() → {Array.<module:nmodule/bajaui/rc/model/UxModel>}
- Source:
Returns:
UxModel
instances for this widget's children
- Type
- Array.<module:nmodule/bajaui/rc/model/UxModel>
getName() → {string}
- Source:
Returns:
- Type
- string
getProperties() → {object}
- Source:
Returns:
object literal describing this widget's properties
- Type
- object
getType() → {function}
- Source:
Returns:
constructor for the widget to create
- Type
- function
getValue() → {*|null}
- Source:
Returns:
the value to be loaded into this widget
- Type
- * | null
isReadonly() → {boolean}
- Source:
- Since:
- Niagara 4.14
Returns:
true if this widget should be readonly
- Type
- boolean
toSpandrel(params) → {object}
- Description:
Produce a
spandrelconfig object that represents this Ux element as
rendered in the DOM. Thevalueproperty will always bethis, as the
UxModelwill be loaded into thespandrelwidget as the value.Remember that the
spandreldata will contain any bindings present in
the model as well! Beware of simply passing backtoSpandrel()results
from theUxModelpassed to your render function - you may get duplicate
bindings.toSpandrel()is typically more appropriate for calling on
kids.
- Source:
Parameters:
| Name | Type | Description | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
object | string | function | parameters used for generating the Properties
|
Returns:
an object fit to be passed as a spandrel argument
- Type
- object
(static) make(objopt) → {Promise.<module:nmodule/bajaui/rc/model/UxModel>}
- Source:
Parameters:
| Name | Type | Attributes | Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
obj |
object |
<optional> |
Properties
|
Returns:
- Type
- Promise.<module:nmodule/bajaui/rc/model/UxModel>