j-StatusInput
- podporuje Tmavý režim
- singleton
Použitie
var opt = {};
// opt.placeholder {String} : A placeholder and can be HTML (optional)
// opt.icon {String} : An icon (optional)
// opt.hide {Function} : Is executed when the StatusInput is hiding (optional)
// opt.validate {RegExp} : A validator, must be RegExp or nullable (optional)
// opt.valuel {String} : A default value for the input (optional)
// opt.callback {Function} : A callback
opt.callback = function(newvalue) {
console.log(newvalue);
};
SETTER('statusinput/show', opt);Použite ho so <ui-component name="statusinput">. Keď komponent ešte nie je načítaný, jComponent ho stiahne pri prvom použití z adresy v DEF.fallback (predvolene CDN Componentator). Autor: Peter Širka. Zdroj: úložisko komponentov Componentator, licencia MIT.
<ui-component name="statusinput"></ui-component>
<script>
setTimeout(function() {
var opt = {};
opt.callback = function(val) {
console.log('callback', val);
};
opt.placeholder = 'Type a new name';
SETTER('statusinput/show', opt);
}, 500);
</script>