CategoryFilter

CategoryFilter

new CategoryFilter(element, options)

Source:
Parameters:
NameTypeDescription
elementHTMLElement

DOM element for component instantiation and scope

optionsObject
Properties
NameTypeDescription
itemSelectorString

Selector for the tree parent items

attachClickListenerBoolean

Whether or not to bind click events

Classes

CategoryFilter

Methods

destroy()

Description:
  • Destroy component.

Source:

handleClickExpand(e)

Description:
  • Expand tree list item.

Source:
Parameters:
NameTypeDescription
eEvent

init()

Description:
  • Initialise component.

Source:

(static) autoInit(root) → {CategoryFilter}

Source:
Parameters:
NameTypeDescription
rootHTMLElement

DOM element for component instantiation and scope

Returns:

An instance of CategoryFilter.

Type
CategoryFilter