config.item_list.item.enable_selection - Initialization - Author API

Author API Initialization

enable_selection

Controls whether a checkbox appears next to the Items in the list.

You would want to use this so that you can retreive the JSON data for multiple selected Items via the getSelectedItems() method.

Note When this option is set to true, checkboxes will be added next to Items. However, there are no associated batch actions in the default Learnosity interface. This option is provided so that you can build your own buttons to perform actions on multiple Items using the getSelectedItems() method.

Examples

// Allow selecting multiple Items in the Item list view
var initializationOptions = {
    "config": {
        "item_list": {
            "item": {
                "enable_selection": true
            }
        }
    }
};

Values

Attribute path config.item_list.item.enable_selection

Default false

Type boolean

Related articles

  • The getSelectedItems() method, which retrieves the contents of the selected Items, including their Questions and Features, in the Item list view.
Was this article helpful?

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