# j-StatusInput

> j-StatusInput: jednoduché použitie pre rôzne prípady; podporuje tmavý režim

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: sk
Content-SHA256: 650540736b3b68b410f9907883373949ce37672a7efa703ee8628a3ae367d48f
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

- podporuje __Tmavý režim__
- singleton


## Použitie

```javascript
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.

```html example.html
<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>
```
