exports

exports

exports

new exports(descriptor)

Description:
  • The class constructor.

    The only param this method gets is a constructor with all the mandatory and optional component data. Component will receive the same descriptor as create method param.

    This method will call the "create" method before registering the component into the reactive module. This way any component can add default selectors and events.

Source:
Parameters:
Name Type Description
descriptor descriptor

data to create the object.

exports

exports

new exports(mainElement, selectors, preventcache)

Description:
  • Setup the core/tree keyboard navigation.

Source:
Parameters:
Name Type Description
mainElement Element | undefined

an alternative main element in case it is not from the parent component

selectors Object | undefined

alternative selectors

preventcache boolean

if the elements cache must be disabled.