# j-StatusInput

> j-StatusInput: fácil uso para diferentes casos; soporta el modo oscuro

Framework: jcomponent20
Product: jComponent 20 (jcomponent@20)
Language: es
Content-SHA256: 763a78a54d0e993f5ae98afbe5b4a98fb24f849002c0b72b903790ca96246548
Snapshot: c0700e321579725c5cf4f5ace1ad7d2866d1b4f93c24a63c0b41b6b7998e976c
Sources: components@910ed1a86f6e72b4f031d3ad0dc7844f9fc5cb8e
Review: not-recorded

- admite __modo oscuro__
- singleton


## Uso

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

Úselo con `<ui-component name="statusinput">`. Cuando el componente aún no está cargado, jComponent lo descarga en el primer uso desde la dirección en `DEF.fallback` (el CDN Componentator de forma predeterminada). Autor: Peter Širka. Fuente: repositorio de componentes 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>
```
