CategoryFilter

CategoryFilter

new CategoryFilter(element, options)

Source:
Parameters:
Name Type Description
element HTMLElement

DOM element for component instantiation and scope

options Object
Properties
Name Type Description
itemSelector String

Selector for the items

parentItemSelector String

Selector for the parent items

listSelector String

Selector for the lists

attachClickListener Boolean

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:
Name Type Description
item Node

handleClickExpand(e)

Description:
  • Expand tree list item.

Source:
Parameters:
Name Type Description
e Event

init()

Description:
  • Initialise component.

Source:

(static) autoInit(root) → {CategoryFilter}

Source:
Parameters:
Name Type Description
root HTMLElement

DOM element for component instantiation and scope

Returns:

An instance of CategoryFilter.

Type
CategoryFilter