Class: DropButton

Drupal.DropButton(dropbutton, settings)

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
Name Type Description
title string

The text inside the toggle link element. This text is hidden from visual UAs.

Source:

Members

(static) dropbuttons :Array.<Drupal.DropButton>

Store all processed DropButtons.

Type:
Source:

Methods

close()

Source:

focusIn(e)

Parameters:
Name Type Description
e jQuery.Event

The event triggered.

Source:

focusOut(e)

Parameters:
Name Type Description
e jQuery.Event

The event triggered.

Source:

hoverIn()

Source:

hoverOut()

Source:

open()

Source:

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.

Source:

(inner) dropbuttonClickHandler(e)

Delegated callback for opening and closing dropbutton secondary actions.

Parameters:
Name Type Description
e jQuery.Event

The event triggered.

Source: