module:qbank_managecategories/datafilter/filtertypes/categories

module:qbank_managecategories/datafilter/filtertypes/categories

new (require("qbank_managecategories/datafilter/filtertypes/categories"))(filterType, rootNode, initialValues, filterOptions)

Description:
  • Construct a new categoires filter

Source:
Parameters:
Name Type Description
filterType String

The type of filter that this relates to (categories)

rootNode HTMLElement

The root node for the participants filterset

initialValues Array

The currently selected category IDs.

filterOptions Object

An object containing the additional options for the filter, currently "includesubcategories" is supported, which if true will display the "Also show questions from subcategories" checkbox as checked.