This AS.form plugin is a wrap to jscolor.
Jscolor is © 2008–2020 Jan Odvárko.
Developed and maintained by balestra
Licensed under Creative Commons Attribution 4.0 License for free personal/professional/commercial use, with attribution.
Includes jscolor.
Version 1.2, released on 2020-11-10
Fields of type:
jscolor
color
, an alias to jscolor
if field of type color
isn’t defined yet.The double class name is intentional: other plugins, loaded before or after this one, could re-define field type color
.
Plugin URI: https://cdn.altersoftware.org/js-as-form/plugin/as-form-jscolor.js
Plugin name: jscolor
In alternative: asForm.addField(fieldname,'color', {options…} )
Generates a text field with a color picker, with its own WYSIWYG editor.
Common option keys can be used, in addition:
format
(String): color format, defaults to rgba
. One of these:
rgba
: e.g.: rgba(211, 140, 31, 0.5)hex
: e.g.: #d6a30crgb
: e.g.: rgb(211, 140, 31)placeholder
(string): empty field placehoder.Notes:
rgba
rgba
) the related slider will be included.skipempty
option is set automatically.format
option, removed noalpha
option.noalpha
option.