color
type to TWikiForms:
Type | Description | Size | Value |
---|---|---|---|
color |
Single-line text box and a color picker to pick a color. The color can also be typed into the text box, such as #123456 . |
Text box width in number of characters | Initial (default) color |
Name: | Type: | Size | Values: | Tooltip message: |
---|---|---|---|---|
Background color | color | 12 | Select color |
<form action="..."> %COLORPICKER{ name="text_color" size="12" value="#123456" class="twikiInputField" }% <form>This will show an HTML input field named "text_color" and a color picker tied to it.
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" |
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. |
%INCLUDE{ "%SYSTEMWEB%.ColorPickerPlugin" section="code" }% <form action="..."> %INCLUDE{ "%SYSTEMWEB%.ColorPickerPlugin" section="picker" NAME="demo_color" SIZE="12" VALUE="#123456" EXTRA="class=\"twikiInputField\"" }% </form>This will show an HTML input field named "demo_color" and a color picker tied to it. The
"code"
section should be included once per topic, the "picker"
section can be included as many times as needed. The NAME
parameter is required; SIZE
, VALUE
and EXTRA
parameters are optional. Use the EXTRA
parameter to add additional parameters to the HTML input field.
Test: (this works only if the ColorPickerPlugin is installed and disabled)
ColorPickerPlugin.zip
in your twiki installation directory.
Author: | TWiki:Main.PeterThoeny, TWiki.org |
Copyright: | © 2007 Steven Wittens , Acko.net for Farbtastic jQuery plugin © 2010-2013 TWiki:Main.PeterThoeny and TWiki:TWiki.TWikiContributor for TWiki ColorPickerPlugin |
License: | GPL (GNU General Public License ) |
Dependencies: | JQueryPlugin (pre-installed) |
Version: | 2013-02-15 |
2013-02-15: | TWikibug:Item7148: Fix for color picker not working if initial value of TWiki forms field of type color is empty |
2013-01-09: | TWikibug:Item7091: Dependency clarification; use TWISTY for installation instructions |
2012-12-03: | TWikibug:Item7020: Add VarCOLORPICKER with category; doc improvements |
2012-08-11: | TWikibug:Item6837: Doc fixes; updated installation instructions |
2011-06-11: | TWikibug:Item6725: Change global package variables from "use vars" to "our" |
2010-11-30: | TWikibug:Item6610: Rewrite ColorPickerContrib into ColorPickerPlugin |
2010-11-27: | TWikibug:Item6609: In TWikiForms type table, automatically list the color form field type defined in this contrib -- TWiki:Main.PeterThoeny |
2010-11-26: | TWikibug:Item6606: Complete rewrite of contrib using Farbtastic color picker -- TWiki:Main.PeterThoeny |
2006-10-27: | Initial version of ColorPickerContrib by TWiki:Main.FlavioCurti using Colorpicker by Norman Timmler (inlet media e.K., Hamburg, Germany) |
Copyright © 1999-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Daya Bay? Send feedback Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.ColorPickerPlugin. |