Skip to content

Picker

Selects one value from a set of options.

<Picker ... />

Overview

This component is backed by the platform control or container. Prefer its XML tag in an .etlua template; keep view-tree construction out of controllers.

Topics

Properties

Name Type Required Description
action function optional Component-specific setting passed to the native control.
disabled boolean optional Component-specific setting passed to the native control.
options table optional Selectable options or menu entries.
style string optional menu (default, NSPopUpButton) or segmented (NSSegmentedControl).
value table optional Current selected, edited, or measured value.

Example

<Picker />

Platform notes

  • AppKit uses the AppKit implementation. UIKit uses the UIKit implementation.

Source: lua/embedded/AppKit.lua:1931 (AppKit.Picker)