Initialization Option Author API

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

Was this article helpful?