MyUiWidget

MyUiWidget

new MyUiWidget(el, options, key) → {MyUiWidget}

Source:
Properties:
Name Type Description
options.XXX Boolean

only allow one MyUiWidget to be open at a time

options.XXX Number

set one of the MyUiWidgets to be open

This class handles MyUiWidgets...

Example
js: 

new MyUiWidget(document.getElementById('test'), {}, 'test-node').mount()

Required markup:

<div id="test" data-ui="MyUiWidget" data-ui-options='{}' data-ui-key="menu-MyUiWidget"></div>
Parameters:
Name Type Description
el HTMLElement

node to bind to

options Object

options

key String

key name

Returns:
Type
MyUiWidget

Methods

(static) mount() → {void}

Source:

Add the events

Returns:
Type
void

(static) onClick(e, elm) → {void}

Source:

the click event...

Parameters:
Name Type Description
e Object

: the event object

elm HTMLElement

: the node clicked

Returns:
Type
void

(static) unmount() → {void}

Source:

remove the events

Returns:
Type
void