exports

exports

new exports(descriptor)

Source:

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.

Parameters:
Name Type Description
descriptor descriptor

data to create the object.

exports

new exports(mainElement, selectors, preventcache)

Source:

Setup the core/tree keyboard navigation.

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.

exports