config.activity_edit.item.custom_points.toggle.default_checked - Initialization - Author API

Author API Initialization

default_checked

Controls the initial state of the toggle switch when loading an activity that doesn't have a saved preference.

When creating a new activity or loading an activity that doesn't have a saved customr scoring state the toggle will apply default_checked state to the toggle. Otherwise it will apply the saved state of the activity being loaded.

Examples

// Enabling custom points feature with the toggle visible
var initializationOptions = {
    "config": {
        "activity_edit": {
            "item": {
                "custom_points": {
                    "toggle": {
                        "show": true,
                        "default_checked": false
                    }
                }
            }
        }
    }
};

Values

Attribute path config.activity_edit.item.custom_points.toggle.default_checked

Default false

Type boolean

Was this article helpful?

Did you arrive here by accident? If so, learn more about Learnosity.