new DropButton(dropbutton, settings)
A DropButton presents an HTML list as a button with a primary action.
All secondary actions beyond the first in the list are presented in a dropdown list accessible through a toggle arrow associated with the button.
Parameters:
Name | Type | Description | ||||||
---|---|---|---|---|---|---|---|---|
dropbutton |
HTMLElement | A DOM element. |
||||||
settings |
object | A list of options including: Properties
|
- Source:
Members
(static) dropbuttons :Array.<Drupal.DropButton>
Store all processed DropButtons.
Type:
- Array.<Drupal.DropButton>
Methods
close()
focusIn(e)
Parameters:
Name | Type | Description |
---|---|---|
e |
jQuery.Event | The event triggered. |
focusOut(e)
Parameters:
Name | Type | Description |
---|---|---|
e |
jQuery.Event | The event triggered. |
hoverIn()
hoverOut()
open()
toggle(showopt)
Toggle the dropbutton open and closed.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
show |
bool |
<optional> |
Force the dropbutton to open by passing true or to close by passing false. |
(inner) dropbuttonClickHandler(e)
Delegated callback for opening and closing dropbutton secondary actions.
Parameters:
Name | Type | Description |
---|---|---|
e |
jQuery.Event | The event triggered. |
- Source: