Initialization Option Author API

difficulty

Configuration options for the difficulty.

Values

Request object key config.item_edit.item.details.difficulty

Type object

This object has the following properties which can be configured.

  • edit boolean

    Controls whether the difficulty field can be changed.

    You would want to use this so that you can prevent authors from editing the Item's difficulty.

    Default: true

    var initializationOptions = {
        "config": {
            "item_edit": {
                "item": {
                    "details": {
                        "difficulty": {
                            "edit": false
                        }
                    }
                }
            }
        }
    };
  • show boolean

    Controls whether the difficulty field is shown.

    You would want to use this to prevent authors from updating the difficulty information for Items.

    Default: true

    var initializationOptions = {
        "config": {
            "item_edit": {
                "item": {
                    "details": {
                        "difficulty": {
                            "show": false
                        }
                    }
                }
            }
        }
    };
Was this article helpful?