color-chooser(key, value, ..., key, value)
Inserts a button in generated content. Clicking this button displays a color chooser dialog box allowing to the user to give an hexadecimal color value (format: #HHHHHH; example: #FF0000) to the attribute or element being edited.
This control can be used to edit the value of the element which is the target of the CSS rule. If "attribute, attribute_name" is specified, this control can be used to edit the value of an attribute of this target element.
| Key | Value | Default | Description |
|---|---|---|---|
| swatch-width | Number (implicit px) or CSS length | 32px | Width of the color swatch displayed by the button. |
| swatch-height | Number (implicit px) or CSS length | 16px | Height of the color swatch displayed by the button. |
Key, value, ..., key, value may also specify style parameters.
Examples:
color-chooser()
color-chooser(attribute, bgcolor,
swatch-width, 1.1em,
swatch-height, 50)