Class: DropButton

Drupal. DropButton

new Drupal.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.

Name Type Description
dropbutton HTMLElement

A DOM element.

settings object

A list of options including:

Name Type Description
title string

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

Members

staticDrupal.DropButton.dropbuttonsArray.<Drupal.DropButton>

Store all processed DropButtons.

Methods

Name Type Description
e jQuery.Event

The event triggered.

Name Type Description
e jQuery.Event

The event triggered.

Toggle the dropbutton open and closed.

Name Type Description
show bool optional

Force the dropbutton to open by passing true or to close by passing false.

innerdropbuttonClickHandler(e)

Delegated callback for opening and closing dropbutton secondary actions.

Name Type Description
e jQuery.Event

The event triggered.