ActionMenu:
Filter:
Classes (extension) | GUI > Views | Libraries > jostMlib

ActionMenu
ExtensionExtension

A Button with a popup list window for performing actions.
Location: NOT INSTALLED!

Description

A Button with a Popup List for performing actions. Closes on unfocus or with esc key.

Supports Button or RoundButton as a button classes.

If wslib quark is active, defaults to RoundButton.

Closes on click outside or on escape.

Class Methods

.new

Create an ActionMenu

Arguments:

parent

The parent view.

bounds

A Rect

name

The Menu Button Title

items

An Array of Strings or Associations (\key->function)

showArrow

show a little down-tick arrow, defaults to true

Returns:

an ActionMenu

.buttonClass

Default: Button.

but you can use the SmoothButton or RoundButton (RECOMMENDED) from the wonderful wslib quark.

If wslib quark is active, defaults to RoundButton.

Returns:

the Button class.

Inherited class methods

Instance Methods

.defaultAction

a function. if you a add only a string, not an association, this function will be used.

.fontSize

.button

the menu Button

.globalAction

a global function to be evaluated on selection

Returns:

(describe returnvalue here)

.closeOnSelect

default Boolean is true. Close the select window after selection.

.unfocusClose

default Boolean is true. Close the select on unfocs (click outside).

.toolTip

set a tooltip for the menu button

.arrowSize

default 6.5

.arrowColor

.borderless

Inherited instance methods

Examples