Difference: VarCOLORPICKER (1 vs. 2)

Revision 22014-12-30 - TWikiContributor

Line: 1 to 1
 
META TOPICPARENT name="TWikiVariables"

COLORPICKER{} -- color picker for use in HTML forms for TWiki applications

Line: 8 to 8
 
Parameter Description Default Example
name Name of input field (required) name="text_color"
value Initial color value, in hexadecimal notation for the combination of Red, Green, and Blue color values (RGB). (none) value="#0000ff"
Changed:
<
<
size Size of input field (browser default) size="12"
class CSS class of input field (none) class="twikiInputField"
Additional parameters can be supplied; they will be added to the HTML input field.
>
>
size Size of input field, in number of characters (browser default) size="8"
class CSS class of input field or the rectangular color block (none) class="twikiInputField"
style Style of input field or the rectangular color block (none) style="width: 190px; height: 32px"
type Type of color widget:
"below" - color picker is located below the input field;
"popup" - pop-up a color picker window when clicking the button next to the input field
    (this uses very little vertical space);
"view" - a read-only rectangular block colored in the color value (no color picker);
"view-hex" - like view, in addition shows the color value as an RGB hexadecimal code (no color picker);
type="below" type="view-hex"
Additional parameters can be supplied; they will be added to the HTML input field or the rectangular color block.
 
  • Example:
    <form action="...">
Changed:
<
<

%COLORPICKER{ name="text_color" size="12" value="#123456" class="twikiInputField" }%
>
>

%COLORPICKER{ name="text_color" value="#123456" class="twikiInputField" type="popup" }%
 
<form>
Added:
>
>

Renders as:
 

Revision 12012-12-04 - TWikiContributor

Line: 1 to 1
Added:
>
>
META TOPICPARENT name="TWikiVariables"

COLORPICKER{} -- color picker for use in HTML forms for TWiki applications

 
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.VarCOLORPICKER.