hokuto.render({
config: {
state: { n: 50 },
children: [{
tag:'span',
html: function() {
this.node.innerHTML = this.parent.state.n;
},
ref: 'lab'
},{
tag: 'input',
attrs: { type: 'range' },
onInput: function(e) {
this.getByRef('lab').innerHTML = e.target.value;
}
}]
}
})
-
Notifications
You must be signed in to change notification settings - Fork 0
fedeghe/hokuto
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|