Skip to content

COLORPICKER

Jeff Olajos edited this page Oct 24, 2024 · 24 revisions

<COLORPICKER/> : FormField

The <COLORPICKER/> widget is a specialized widget used to display a color selector dialog (example #1).

Attributes

Name Type Default Description Req
value string The color picker color at start or as selected.
width int / % 44 The width of the dialog expressed in pixels or as a percentage of its parent.
height int / % 44 The height of the dialog expressed in pixels size or as a percentage of its parent.
heading string Color The dialog heading text
subheading string Shade The dislog subheading text

Methods

Name Description
show() Launches the color selector dialog.

Examples

<COLORPICKER id="cp1" value="red" heading="Choose a Color" subheading="Choose a Shade"/>    
<LINK onclick="cp1.start()">
  <ICON icon="palette_sharp" color="{cp1}" type="outline" size="100"/>
</LINK>

logo See it in Action

For in-depth examples and full applications, visit fml.dev!

Other Widgets You May Find Useful:

Clone this wiki locally