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

Author API Initialization

toggle

Container for toggle-related settings that control the visibility and default state of the Custom Points feature on initialization.

Examples

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

Values

Attribute path config.activity_edit.item.custom_points.toggle

Type object

Properties

  • show boolean

    Controls whether the Custom Points toggle switch is visible in the Activity Editor toolbar.

  • default_checked boolean

    Controls whether Custom Points mode is enabled by default when creating new activities or loading activities for the first time.

Was this article helpful?

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