Web Component: j-StatusInput


  • Info
  • HTML
  • JS
  • CSS
  • Meta

j-StatusInput

  • easy usage for different cases

  • supports Dark mode

  • singleton

  • jComponent v19|v20

Usage

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

Author