radh-ui
Version:
Stencil Component Starter
25 lines (19 loc) • 713 B
JavaScript
;
Object.defineProperty(exports, '__esModule', { value: true });
const index = require('./index-710e648a.js');
const radhInputTextCss = "";
class RadhInputText {
constructor(hostRef) {
index.registerInstance(this, hostRef);
this.changed = index.createEvent(this, "changed", 7);
}
handleChange(ev) {
this.value = ev.target ? ev.target.value : null;
this.changed.emit(this.value);
}
render() {
return (index.h("label", null, this.label, index.h("input", { value: this.value, type: "text", name: this.name, onInput: ev => this.handleChange(ev) })));
}
}
RadhInputText.style = radhInputTextCss;
exports.radh_input_text = RadhInputText;