CategoryFilter

CategoryFilter

new CategoryFilter(element, options)

Source:
Parameters:
NameTypeDescription
elementHTMLElement

DOM element for component instantiation and scope

optionsObject
Properties
NameTypeDescription
itemSelectorString

Selector for the items

parentItemSelectorString

Selector for the parent items

listSelectorString

Selector for the lists

attachClickListenerBoolean

Whether or not to bind click events

Classes

CategoryFilter

Methods

destroy()

Description:
  • Destroy component.

Source:

expandParents(item)

Description:
  • Expand parents of the given item.

Source:
Parameters:
NameTypeDescription
itemNode

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