Members
data_type :string
The data type of the current field is set using this method.
Type:
- string
schema :Object
The schema of the current field (schema of fields such as ‘Single Line Textbox’, ‘Number’,
and so on) is set using this method.
Type:
- Object
uid :string
The UID of the current field is defined in the content type of the entry.
Type:
- string
Methods
getData(options) → {Object|string|number}
Gets the data of the current field
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
options |
Object | Options object for get Data method.
Properties
|
Returns:
Returns the field data.
- Type
- Object | string | number
setData(data) → {external:Promise}
Sets the data for the current field.
Parameters:
Name | Type | Description |
---|---|---|
data |
Object | string | number | Data to be set on the field |
Returns:
A promise object which is resolved when data is set for a field. Note: The data set by this function will only be saved when user saves the entry.
- Type
- external:Promise
setFocus() → {Object}
Sets the focus for a field when an extension is being used. This method shows user presence and highlights the extension field that the user is currently accessing in Contentstack UI.
Returns:
A promise object which is resolved when Contentstack UI returns an acknowledgement of the focused state.
- Type
- Object