Namespace: EditorInterface

EditorInterface

Editor Interface instances

Methods

(static) getControlForField() → (nullable) {Object} #

gets a control for a specific field
Returns:
control object for specific field.
Type:
Object
Source:
Example
const control = editorInterface.getControlForField('fieldId')
console.log(control)

(static) update() → {Promise.<EditorInterface>} #

Sends an update to the server with any changes made to the object's properties
Returns:
Object returned from the server with updated changes.
Type:
Promise.<EditorInterface>
Source:
Example
editorInterface.controls[0] = { "fieldId": "title", "widgetId": "singleLine"}
editorInterface.update()
.then(editorInterface => console.log(editorInterface.controls))