ForgeComponents
el

Components

j-StatusInput

jComponent 20 · jcomponent@20 component Παράδειγμα φορτωμένο με jComponent 20
  • Σύνδεση με το Dark Mode
  • Σιγκλέτο

Χρήση

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

Χρησιμοποιήστε το με <ui-component name="statusinput">Όταν το στοιχείο δεν έχει φορτωθεί ακόμα, jComponent Κατεβάστε το για πρώτη φορά από τη διεύθυνση DEF.fallback (Η Componentator Συγγραφέας: Peter Širka. πηγή: το Componentator Ετικέτες Αξιολόγηση, MIT άδεια.

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>