Initialization Option Author API

add_random

Controls whether the add random Activity button is shown.

You would want to use this to allow authors to create random Activities from a set of predefined Item groups.

When this option and activity_list.toolbar.add are set to true, the add Activity button will contain a dropdown menu for adding random Activities.

When the activity_list.toolbar.add initialization option is false, no add buttons are shown at all.

Examples

// Show the add adaptive dropdown button
var initializationOptions = {
    "config": {
        "activity_list": {
            "toolbar": {
                "add_random": true
            }
        }
    }
};

Values

Request object key config.activity_list.toolbar.add_random

Default: false

Type boolean

Caveats

Important This feature does not currently support sections or multiple Item banks.

Versioning

Version added: v2024.1.LTS

Was this article helpful?