COLORPICKER - AppDaddy-Software-Solutions-Inc/framework-markup-language GitHub Wiki

<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 initial color or picked color
width int 44 The width of each individual color swatch in the dialog
height int 44 The height of each individual color swatch in the dialog
heading string Color The dialog heading text
subheading string Shade The dislog subheading text

Methods

Name Description
open() Opens the color selector dialog.

Examples

Example #1: a simple color picker

img

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

logo See it in Action

Other Widgets You May Find Useful:

⚠️ **GitHub.com Fallback** ⚠️