update value property of real DOM nodes; minor DOM diff speedups; allow setFocus=false in the DSL
This commit is contained in:
parent
4199c42e3b
commit
c681f0055f
4 changed files with 67 additions and 38 deletions
|
|
@ -54,9 +54,18 @@ type
|
|||
|
||||
proc renderComb(self: VComponent): VNode =
|
||||
let self = Combined(self)
|
||||
|
||||
proc bu(ev: Event; n: VNode) =
|
||||
self.a.value = ""
|
||||
self.b.value = ""
|
||||
markDirty(self.a)
|
||||
markDirty(self.b)
|
||||
|
||||
result = buildHtml(tdiv(style=self.style)):
|
||||
self.a
|
||||
self.b
|
||||
button(onclick=bu):
|
||||
text "reset"
|
||||
|
||||
proc changed(self: VComponent): bool =
|
||||
let self = Combined(self)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue