Module: widgets

Classes

widgets.Widget

Methods

(protected, inner) _newElement() → {Element|null}

Initializes the widget.

Source:
Returns:
Type
Element | null

(inner) container() → {Element}

Returns the widget parent element.

Source:
Returns:

the parent element.

Type
Element

(inner) container(container)

Sets the widget parent element.

Parameters:
Name Type Description
container
Source:

(inner) destroy()

In order to avoid a memory leak, properly remove the widget from the DOM.

Source:

(protected, inner) register(widget)

If the current widget creates more widgets, register them using this method. It allows the current widget to properly removes its children from the DOM.

Parameters:
Name Type Description
widget Widget

the widget to register.

Source:

(inner) render()

Renders the widget.

Source: