PopupButton

A button that produces a popup when clicked. This is a type of PopupSource, and simply uses a button as the element the user clicks on to produce a popup.
Live demo
$demo.append(
X

Class relationships

This shows the control's base classes (in black), other classes used by the control, and any subclasses.

Class members

cancel
Cancels the popup. From PopupSource.
cancelOnEscapeKey
True if the user can cancel an open popup by pressing the Escape key. Default is true. From PopupSource.
cancelOnOutsideClick
True if the popup should be canceled if the user clicks outside it. Default is true. From PopupSource.
cancelOnWindowBlur
True if the popup should be canceled if the window loses focus. Default is true. From PopupSource.
cancelOnWindowResize
True if the popup should be canceled if the window changes size. Default is true. From PopupSource.
cancelOnWindowScroll
True if the popup should be canceled if the window is scrolled. Default is true. From PopupSource.
close
Close the popup normally. From PopupSource.
closeOnInsideClick
True if the popup should be closed normally if the user clicks inside it. Default is true. From PopupSource.
content
The content of the button.
contentClass
The class of the content portion. From PopupSource.
indicator
Content which indicates the button can be clicked to produce a popup. The default indicator is a downward-pointing arrow.
open
Open the popup. From PopupSource.
openOnClick
True if the popup should open when the user clicks in the control's content. Default is true. From PopupSource.
opened
Returns true if the popup is currently opened. From PopupSource.
overlayClass
The class used to render the overlay behind the popup. From PopupSource.
popup
The content of the popup associated with the control. From PopupSource.
positionPopup
Position the popup with respect to the content. By default, this will position the popup below the content if the popup will fit on the page, otherwise show the popup above the content. Similarly, align the popup with the content's left edge if the popup will fit on the page, otherwise right- align it. Subclasses can override this for custom positioning. From PopupSource.

Notes

View the full source for PopupButton on GitHub.