14 lines
219 B
Plaintext

class {
onCreate(input) {
this.onClick = input.onClick;
}
handleClick() {
this.input.onClick();
}
}
<div>
<button type="button" on-click("handleClick")>${input.label}</button>
</div>