5. color-chooser

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.

KeyValueDefaultDescription
swatch-widthNumber (implicit px) or CSS length32pxWidth of the color swatch displayed by the button.
swatch-heightNumber (implicit px) or CSS length16pxHeight 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)