j-DropdownCheckbox
- NEW now supports dark mode
Configuration:
required {Boolean}(optional) enables "required" (default:false)items {String}(optional) static itemskey1|value1, key2 with value, key3|valueicon {String}(optional) icon for label withoutti-e.g.home,cog, etc.checkicon {String}(optional) check icon withoutti-, (default:check).label {String}(optional) label (default is HTML content)datasource {String}path to data-source (must be array)text {String}determines a property name for text (in data-source), default:namevalue {String}determines a property name for value (in data-source) default :iddisabled {Boolean}(optional) disables this componentcleaner {Boolean}(optional) removes non-exist values (default:true)limit {Number}(optional) sets a limit for selected items (default:0)visible {Number}(optional) sets a maximum visible items then showX selected(default:0)selectedtext {String}(optional) sets a message for maximum visible items e.g.{0} selected from {1}(default:{0} selected)alltext {String}(optional) when all items are selected this is showed (default:All selectedyou can disable it withnull)placeholder {String}(optional) sets a text for placeholder
Use it with <ui-component name="dropdowncheckbox">. When the component is not loaded yet, jComponent downloads it on first use from the address in DEF.fallback (the Componentator CDN by default). Author: Peter Širka. Source: the Componentator components repository, MIT license.
<div style="width:200px">
<ui-component name="dropdowncheckbox" path="selected" config="required:true;type:number;items:Text 1|0,Text 2|1,Text 3|2,Text 4|3,Text 5|4,Text 6|5;visible:3">My label</ui-component>
</div>
<div style="width:200px;margin-top:30px">
<ui-component name="dropdowncheckbox" path="selected2" config="placeholder:Placeholder;type:number;items:Text 1|0,Text 2|1,Text 3|2,Text 4|3,Text 5|4,Text 6|5;visible:3">My label</ui-component>
</div>