# j-StatusInput

> j-StatusInput: łatwy w użyciu w różnych przypadkach; obsługuje tryb ciemny

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: pl
Content-SHA256: 0d5122394d10d4cf4b4e045bd613a4d872a8d1a6badfd977cda3adf1a514e944
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

- Wsparcie - mody ciemne
- Singleton


## Używanie

```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);
```

Użyj go z `<ui-component name="statusinput">`Gdy element nie jest jeszcze ładowany, jComponent Pobierz go po pierwszym użyciu z adresu `DEF.fallback` (Wydaje się Componentator Autor: Peter Širka Źródło: Componentator Zestaw składników, licencja 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>
```
