Web Component: j-KeyValue
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 aninput
is focused
Other functionality
// Binder
SETTER('keyvalue/binder', function(type, value) {
if (type === 'key')
return value.toUpperCase();
else // type === 'value'
return value;
});
Author
- Peter Širka petersirka@gmail.com
- License
Created
18. january 2017
Updated
01. april 2024
Version
v1
License
https://www.totaljs.com/license/
Dark mode
Yes
Responsive
Yes
Author
Peter Širka
Email
petersirka@gmail.com