new Draw(el, options, key) → {Draw}
- Source:
Properties:
Name | Type | Description |
---|---|---|
options.XXX |
Boolean | only allow one Draw to be open at a time |
options.XXX |
Number | set one of the Draws to be open |
This class handles Draws...
Example
js:
new Draw(document.getElementById('test'), {}, 'test-node').mount()
Required markup:
<a href="#test" data-ui="Draw" data-ui-options='{}' data-ui-key="menu-draw"></a>
<div id="test"></div>
maybe?.. maybe data-attributes...
hmmm... nah.. id me thinks
Parameters:
Name | Type | Description |
---|---|---|
el |
HTMLElement | node to bind to |
options |
Object | options |
key |
String | key name |
Returns:
- Type
- Draw
Methods
(static) close() → {void}
- Source:
Close the Draw
Returns:
- Type
- void
(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) open() → {void}
- Source:
Open the Draw
Returns:
- Type
- void
(static) unmount() → {void}
- Source:
remove the events
Returns:
- Type
- void