If the UIObject is mark as {@link UIObject.highlighted | highlighted} - this property defines the color in hexadecimal eg. #A5EBFF (The blue color for campaign item in the cart)
If the UIObject is mark as {@link UIObject.highlighted | highlighted} - this property defines the color in hexadecimal eg. #A5EBFF (The blue color for campaign item in the cart)
Get the UIObject dataView context.
Get the UIObject dataView
Get the UIObject fields.
The UIObject Key
Should the UIObject be editable
Should the UIObject be editable
Get UIField by FieldID
the FieldID of the UIField you want to get
the UIFeild or undefined if none such exists
Recalculate the UIObject
This passes over all the UIField's and sets their values from the DataObject.
Emits the RecalculateUIObject
event
Reload the dataObject from the DB Only applies to changes that haven't been saved to the DB yet
Set a field's value
This is different than setting the field value directly on the dataObject
using DataObject.setFieldValue
because this function involves the application logic.
For example: if {@link Field.readonly | readonly} is true
, the set will not work (no error is thrown).
Additionaly if this field is not customized on the UIObject the set will not work (on error is thrown - undefined will be returned)
The field ID
The value to set
Should the object be saved in the DB, if set to true UIObject.reloadDataObject will not undo this change
The field or undefined if it is not customized
Override the toJSON function This will be called when calling JSON.stringify function
Generated using TypeDoc
Represents a object used to customize the application layout.
Can be used for menus, forms, items in lists etc.
You can change propeties on the UIObject and it's fields to dynamicaly control the Application Layout.
This is done by intercepting the 'RecalculateUIObject' event, and modifying the UIObject found on the
data.UIObject
.example