j-ListBox
- NEW dark mode
- Works with Bootstrap
Configuration:
required{Boolean} enablesrequired(default: false)items{String} static itemskey1|value1, key2 with value, key3|valuetype{String} can benumber(convertsStringvalues toNumber)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:idempty{String} adds an empty fielddisabled{Boolean} disables this componentsearch{String} enables search box with this value as a placeholderheight{Number/String} height (default:200),stringcan containparent,windowor.parent_selectormultiple{Boolean}trueexpectsArrayinpath(default:false)exec{String} a link to function which is executed when the user click on the item
Use it with <ui-component name="listbox">. 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:400px">
<ui-component name="listbox" path="items" config="search:Search;required:true;items:Blue|1,Red|2,Green|3,Purple|4,Orange|5,Rose|6,Gray|7,Black|8;type:number"></ui-component>
</div>
<script>
var items = 3;
</script>