You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** Class representing an asset Extension from Contentstack UI. */
6
+
/** Class representing an Asset Sidebar UI Location from Contentstack UI. */
7
7
declareclassAssetSidebarWidget{
8
8
/**
9
9
* @hideconstructor
@@ -49,10 +49,9 @@ declare class AssetSidebarWidget {
49
49
*/
50
50
onSave(callback: (arg0: AssetType)=>void): void;
51
51
/**
52
-
* The `field.onChange()` function is called when another extension programmatically changes the data of the current extension field using the `field.setData()` function.
53
-
* This function is only available for extension fields that support the following data types: text, number, boolean, or date.
54
-
* @param {function} callback - The function to be called when the asset is edited/changed.
55
-
* @param {AssetType} arg0 - The asset data passed as an argument to the callback function when the asset is edited/changed.
52
+
* Registers a callback function to be executed whenever there is a change made to the Asset.
53
+
* @param {function} callback - The function to be called when the asset is edited or changed.
54
+
* @param {AssetType} arg0 - The asset data passed as an argument to the callback function when the asset is edited or changed.
/** Class representing an entry from Contentstack UI. Not available for Dashboard Widget extension. */
9
+
/** Class representing an entry from Contentstack UI. Not available for Dashboard UI Location. */
10
10
declareclassEntry{
11
11
/**
12
12
* @hideconstructor
@@ -26,8 +26,8 @@ declare class Entry {
26
26
getData(): EntryType;
27
27
/**
28
28
* Gets the field object for the saved data, which allows you to interact with the field.
29
-
* This object will have all the same methods and properties of extension.field.
30
-
* Note: For fields initialized using the getFields function, the setData function currently works only for the following fields: as single_line, multi_line, RTE, markdown, select, number, boolean, date, link, and extension of data type text, number, boolean, and date.
29
+
* This object will have all the same methods and properties of appSDK.location.CustomField.field.
30
+
* Note: For fields initialized using the getFields function, the setData function currently works only for the following fields: as single_line, multi_line, RTE, markdown, select, number, boolean, date, link, and Custom Field UI Location of data type text, number, boolean, and date.
31
31
* @example
32
32
* var field = entry.getField('field_uid');
33
33
* var fieldSchema = field.schema;
@@ -44,20 +44,20 @@ declare class Entry {
44
44
*/
45
45
onSave(callback: (arg0: EntryType)=>void): void;
46
46
/**
47
-
* The field.onChange() function is called when another extension programmatically changes the data of the current extension field using the field.setData() function. This function is only available for extension fields that support the following data types: text, number, boolean, or date.
48
-
* @param {function} callback The function to be called when an entry is edited/changed.
47
+
* The onChange() function executes the provided callback function whenever an entry is updated.
48
+
* @param {function} callback - The function to be called when the entry is edited or changed.
49
49
*/
50
50
onChange(callback: IOnEntryChangeCallback): void;
51
51
/**
52
52
* The onPublish() function executes the callback function every time an entry has been published with the respective payload.
53
53
* @param {function} callback The function to be called when an entry is published.
/** Class representing a field from Contentstack UI. Only available for Custom Field extension */
6
+
/** Class representing a field from Contentstack UI. Only available for Custom Field and Field Modifier UI Location */
7
7
declareclassField{
8
8
/**
9
9
* @hideconstructor
@@ -33,13 +33,14 @@ declare class Field {
33
33
resolved?: boolean|undefined;
34
34
}): GenericObjectType;
35
35
/**
36
-
* 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.
37
-
* @return {Promise<void} A promise object which is resolved when Contentstack UI returns an acknowledgement of the focused state.
36
+
* Sets the focus for a field when an App is being used. This method shows user presence and highlights the App's Custom Field that the user is currently accessing in Contentstack UI.
37
+
* @return {Promise<void>} A promise object which is resolved when Contentstack UI returns an acknowledgement of the focused state.
38
38
*/
39
39
setFocus(): Promise<void>;
40
40
/**
41
-
* This function is called when another extension programmatically changes data of this field using field.setData() function, only available for extension field, only support extensions of data type text, number, boolean or date.
42
-
* @param {function} callback The function to be called when an entry is published.
41
+
* The `onChange` function is triggered when another extension or app programmatically modifies the data of this field using the `field.setData()` function.
42
+
* It is specifically designed for App's Custom Fields of data types text, number, boolean, or date.
43
+
* @param {function} callback The function to be called when a field has been updated.
0 commit comments