save
Configuration options for the Item save button and its behavior.
You would want to use this to disable the save functionality and build your own save button in your application, for example.
Examples
// Show or hide the save button using a boolean value
var initializationOptions = {
"config": {
"item_edit": {
"item": {
"save": false
}
}
}
};
// Disable the persist functionality and hide the save button using an object type
var initializationOptions = {
"config": {
"item_edit": {
"item": {
"save": {
"persist": false,
"show": false
}
}
}
}
};
Values
Request object key config.item_edit.item.save
This option can be initialized as one of the following types: boolean object.
-
Type boolean
Controls whether the save button is shown on the Item editor view.
-
Type object
Configuration options for the save button.
-
persist boolean
Controls whether the Item data is persisted in Item bank.
Default:
true
-
show boolean
Controls whether the save button is shown in the Item editor view.
Default:
true
-
Related articles
- Initializing the Author API Activity editor to create and edit Items within an Activity
- The
save()
method, which saves the current Item being edited. - The
save
event, which fires before an Item is to be saved. - The
save:error
event, which fires when an Item has failed to save. - The
save:success
event, which fires when an Item has successfully saved.