Skip to content

ColorPicker

Selects a color using the platform color control.

<ColorPicker ... />

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
color color optional Component-specific setting passed to the native control.
disabled boolean optional Component-specific setting passed to the native control.
onChange function optional Callback invoked when the value changes.

Example

<ColorPicker />

Platform notes

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

Source: lua/embedded/AppKit.lua:1978 (AppKit.ColorPicker)