Initialization Option Author API

show_save

Configuration options for the "save & exit" option.

Values

Request object key config.activity_edit.player.administration.show_save

Type object

This object has the following properties which can be configured.

  • show boolean

    Controls whether the "save & exit" option is shown in the administration panel.

    You would want to use this to hide the "save & exit" option.

    Default: true

    var initializationOptions = {
        "config": {
            "activity_edit": {
                "player": {
                    "administration": {
                        "show": true,
                        "show_save": {
                            "show": false
                        }
                    }
                }
            }
        }
    };
  • edit boolean

    Controls whether the "save & exit" option can be changed in the Activity editor.

    You would want to use this to prevent authors from changing the "save & exit" option. The option will be displayed but cannot be changed.

    Default: true

    var initializationOptions = {
        "config": {
            "activity_edit": {
                "player": {
                    "administration": {
                        "show": true,
                        "show_save": {
                            "show": true,
                            "edit": false
                        }
                    }
                }
            }
        }
    };
Was this article helpful?