radh-ui
Version:
Stencil Component Starter
21 lines (17 loc) • 650 B
JavaScript
import { r as registerInstance, c as createEvent, h } from './index-a9700b09.js';
const radhInputTextCss = "";
class RadhInputText {
constructor(hostRef) {
registerInstance(this, hostRef);
this.changed = createEvent(this, "changed", 7);
}
handleChange(ev) {
this.value = ev.target ? ev.target.value : null;
this.changed.emit(this.value);
}
render() {
return (h("label", null, this.label, h("input", { value: this.value, type: "text", name: this.name, onInput: ev => this.handleChange(ev) })));
}
}
RadhInputText.style = radhInputTextCss;
export { RadhInputText as radh_input_text };