new module:ct-workbench /messaging /Record Node(record, auto Generate Interval Property)
A PresentationNode that visually represents a record and allows the user to edit its data fields.
Extends:
Parameters:
Name | Type | Description |
---|---|---|
record |
module:ct-services |
The record stub that this PresentationModel represents |
autoGenerateIntervalProperty |
module:br-presenter |
Property set to the number of milliseconds between updates. |
Extends
Methods
add Field Node(node)
Add the given field to the list of data fields.
Parameters:
Name | Type | Description |
---|---|---|
node |
module:br-presenter |
error Selected()
User has selected an error state, so pass it to the RecordStub's setErrorType method and update the view accordingly.
initialise Fields()
Populate the fields NodeList with a list of br-presenter/node/Field
s
containing data from the RecordStub's field data.
send()
Create JSON object from the list of fields and their current values,
and pass it to the RecordStub
's setFieldData method.
toggle Errors Visible()
Toggle visibility of the error state dropdown.
toggle Expanded()
Toggle the expanded view of the record, showing auto gen toggle, error state button, data fields, etc.
to Json()
Convert the fields
NodeList to a JSON object.