Author API Initialization
toggle
Container for toggle-related settings that control the visibility and default state of the Custom Points feature on activity load.
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 the initial state of the toggle switch when loading an activity that doesn't have a saved preference.