This AS.form plugin is a wrap to iro.js.
iro.js is © James Daniel | Mozilla Public License Version 2.0.
Developed and maintained by balestra
Licensed under Creative Commons Attribution 4.0 License for free personal/professional/commercial use, with attribution.
Includes iro.js v5.
Version 1.1, released on 2020-11-19
Fields of type:
irocolor, an alias to iro 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-iro.js
Plugin name: iro
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)rgb: e.g.: rgb(211, 140, 31)hex: e.g.: #d6a30chex8: e.g.: #d6a30cffplaceholder (string): empty field placehoder.readonly (boolean): if true the field will be read-only.Notes:
rgbargba, hex8) the related slider will be included.skipempty option is set automatically.