Skip to content

Component

Tim Rücker edited this page Dec 6, 2018 · 5 revisions

This decorator is the heart of the framework. It allows the framework to find the elements and child elements based on the selectors and to initialize the template object.

Decorator Options

A brief list of all possible configurations that can be made to the component.

selector: string

The selector property is described in detail here.

childrenSelectors: string[]

Only elements within the element that was found using the selector are searched. The configuration is expected to be an array of strings corresponding to the data attributes of the target elements. The results of the childrenSelectors property is described in detail here.

template: string

The template property is described in detail here.

Clone this wiki locally