About of AntColorPicker
AntColorPicker, is the jQuery color picker plug-in of AntProduction.
Have a question about AntColorPicker ? Please use GitHub Issue.
Documentation of AntColorPicker
| Fields | Description |
|---|---|
| builder [optional JavaScript anonymous function] | The default function to build the html content of the Antcolorpicker based on contentTemplate and contentLineTemplate parameters. Contained tags from templates are replaced with it. |
| contentLineTemplate [optional template html] | The template Html to display colored boxes. It contain tag which will be replaced to insert colors. The template of tag is as follow : #tag#.
|
| contentTemplate [optional template html] |
The template Html to define the structure of the palette. If it doesn't contain tags, #contentLineTemplate# and #crossToClose#, options contentLineTemplate, labelClose and withCrossToClose are ignored.
|
| iconPath [string] | The relative path of directory of icons |
| labelClose [string] | Label of tooltip for close icon |
| labelRAZColor [string] | Label of tooltip for RAZ icon |
| largeurPalette [integer] | Integer to define the width of the div of the AntColorPicker |
| withRAZOption [boolean] | Option. If "withRAZOption" is true, an icon to clear input field is added to the DOM next to input field |
| withCrossToClose [boolean] | Option. If "withCrossToClose" is true, an icon to close palette is added |
| withPaletteIcon [boolean] | Option. If "withPaletteIcon" is true, an icon is added into input field |
| zIndex [integer] | Integer to define the z-index of the div of the AntColorPicker |
| $BGColorTarget [string] | String provided to selector of jQuery |
Samples of AntColorPicker
| Basic sample of AntColorPicker. | Try it |
| Sample of custom AntColorPicker. | Try it |
| MS-Office color picker, sample of custom AntColorPicker. | Try it |
