<<O>> Difference Topic ColorPickerPlugin (6 - 2018-07-06 - TWikiContributor) |
Color Picker Plugin<-- Contributions to this plugin package are appreciated. Please update this page at http://twiki.org/cgi-bin/view/Plugins/ColorPickerPlugin ![]()
Introduction
This TWiki plugin packages the Farbtastic color picker
Using the color picker in TWikiForms
This package adds a
Example form definition:
Note: The
Using the color picker in an HTML formYou can also use the color picker directly in your HTML forms, without having to write any code. Just include this in the topic text: <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.
Test: (this only works if the ColorPickerPlugin is installed and enabled)
Using the color picker with disabled pluginIt is also possible to use the color picker in HTML forms with disabled ColorPickerPlugin:
%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)
<-- -->
Installation InstructionsThis plugin is pre-installed. TWiki administrators can upgrade the plugin as needed on the TWiki server. <--/twistyPlugin twikiMakeVisibleInline-->
<--/twistyPlugin-->
Plugin Info
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Changed: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
< < |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
<--/twistyPlugin twikiMakeVisibleInline--> | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
Added: | |||||||||||||||||||||||||||||||||||||||||||||||||||||||
> > |
| ||||||||||||||||||||||||||||||||||||||||||||||||||||||
<--/twistyPlugin--> Related Topics: VarCOLORPICKER, TWikiPreferences, TWikiForms, TWikiPlugins
|
Revision r6 - 2018-07-06 - 00:16:11 - TWikiContributor | Edit |