:: libs :: js-as-form :: as-form-iro

Library index

Plugin: “as-form-iro”

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

Provides

Fields of type:

The double class name is intentional: other plugins, loaded before or after this one, could re-define field type color.

Load plugin

Plugin URI: https://cdn.altersoftware.org/js-as-form/plugin/as-form-iro.js

Plugin name: iro

iro

asForm.addField( fieldname, 'iro', {options…} )

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:

Notes:

  1. Color format is by default rgba
  2. If color format supports alpha channel (rgba, hex8) the related slider will be included.
  3. If the field isn’t mandatory skipempty option is set automatically.

Version history