Collection

widgets-controller~ Collection

new Collection(elements)

Source:
Parameters:
Name Type Description
elements Array.<Element>

HTML elements

Methods

_instantiateSingleWidget(element, Widget, optionsopt)

Source:
Parameters:
Name Type Attributes Description
element Element

HTML element

Widget object

widget to instantiate

options object <optional>

widget options

_methodCall(Widget, method)

Source:
Parameters:
Name Type Description
Widget object

widget to instantiate

method function

widget function to call

disable(Widget)

Source:
Parameters:
Name Type Description
Widget object

widget to instantiate

enable(Widget)

Source:
Parameters:
Name Type Description
Widget object

The widget to instantiate

instantiate(Widget, optionsopt)

Source:
Parameters:
Name Type Attributes Description
Widget object

widget to instantiate

options object <optional>

widget options

update(Widget)

Source:
Parameters:
Name Type Description
Widget object

widget to instantiate