Multiple action button component.
Methods
(static) .cleanUp()
Clean up any nodes which have been moved or made stray.
(static) .disable(multiactions)
Disables multiactions.
Parameters:
Name | Type | Description |
---|---|---|
multiactions |
Node | string | the multiactions DOM node or its id |
(static) .enable(multiactions)
Enables multiactions.
Parameters:
Name | Type | Description |
---|---|---|
multiactions |
Node | string | the multiactions DOM node or its id |
(static) .hide(multiactions)
Hides multiactions.
Parameters:
Name | Type | Description |
---|---|---|
multiactions |
Node | string | the multiactions DOM node or its id |
(static) .hideAll()
Hides all open multiactions.
(static) .init(contextopt, selectoropt)
Initialise plugin.
Parameters:
Name | Type | Attributes | Default | Description |
---|---|---|---|---|
context |
Node |
<optional> |
document | DOM element we're limiting selection to |
selector |
string |
<optional> |
'[data-multiaction-button]' | CSS selector |
(static) .setMultiactionButtonPosition(multiactions, trigger)
Positions the multiactions relative to the trigger.
Parameters:
Name | Type | Description |
---|---|---|
multiactions |
Node | the multiactions DOM node |
trigger |
Node | the trigger DOM node |
(static) .show(multiactions, keyCode)
Displays multiactions.
Parameters:
Name | Type | Description |
---|---|---|
multiactions |
Node | string | the multiactions DOM node or its id |
keyCode |
string | an optional event keyCode |