PopupButton

A button made to open popups.

Constructors

this
this(NodeParams params, string text, Node[] popupChildren)

Create a new button.

Members

Functions

toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin defineStyles
Undocumented in source.
__anonymous
mixin enableInputActions
Undocumented in source.

Variables

parentPopup
PopupFrame parentPopup;

Popup this button belongs to, if any. Set automatically if the popup is spawned with spawnPopup.

popup
PopupFrame popup;

Popup enabled by this button.

Mixed In Members

From mixin defineStyles

reloadStylesImpl
void reloadStylesImpl()
Undocumented in source. Be warned that the author may not have intended to support it.
loadDefaultStyles
void loadDefaultStyles()
Undocumented in source. Be warned that the author may not have intended to support it.

Examples

auto myButton = popupButton("Options",
    button("Edit", delegate { }),
    button("Copy", delegate { }),
    popupButton("Share",
        button("SMS", delegate { }),
        button("Via e-mail", delegate { }),
        button("Send to device", delegate { }),
    ),
);

Meta