When clicked, this view opens a menu containing several text items, then closes the menu and displays one of the items after it is selected.
The list of items displayed in a menu when the view is clicked.
An Array of Strings or Symbols. |
Removes all items.
The currently selected item.
A String.
The index of the currently selected item.
An integer, or nil meaning no selected item. |
The color used to display text.
A Color. |
Setting this variable colors the area of the view under the text with the given color.
A Color. |
Determines whether the action is triggered when selecting already selected item. Defaults to false.
A Boolean. |
The action object evaluated whenever the user changes the selected item from the menu. See -allowsReselection for customization.
The -value.
True if the current drag data is a number.
Sets -valueAction to the current drag data.
Play different functions: