j-KeyValue
A simple component for create key/value pairs values.
Configuration:
placeholderkey {String}a placeholder for the key inputplaceholdervalue {String}a placeholder for the value inputicon {String}a label icon withoutti-maxlength {Number}max. lenght for inputslabel {String}a label (default:innerHTML)disabled {Boolean}can disabled this controlautocomplete {String}a link tofunction(input, component)which is executed when aninputis focused
Other functionality
// Binder
SETTER('keyvalue/binder', function(type, value) {
if (type === 'key')
return value.toUpperCase();
else // type === 'value'
return value;
});Use it with <ui-component name="keyvalue">. 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.
<ui-component name="keyvalue" path="keyvalue" config="placeholderkey:Type a key;placeholdervalue:Type a value and press enter">Key Value component</ui-component>
<script>
var keyvalue = {};
</script>