reworked event handling again; added scrollapp example
This commit is contained in:
parent
5bc7d4e336
commit
686ad23f2f
12 changed files with 273 additions and 225 deletions
|
|
@ -1,10 +1,10 @@
|
|||
|
||||
import vdom, times, karax, karaxdsl, jdict, jstrutils, parseutils, sequtils
|
||||
import dom, vdom, times, karax, karaxdsl, jdict, jstrutils, parseutils, sequtils
|
||||
|
||||
var
|
||||
entries: seq[cstring]
|
||||
results: seq[cstring]
|
||||
timeout : Timeout
|
||||
timeout: Timeout
|
||||
|
||||
proc reset() =
|
||||
results.add cstring"reset started"
|
||||
|
|
@ -139,12 +139,9 @@ proc createDom(): VNode =
|
|||
tdiv:
|
||||
text r
|
||||
|
||||
setRenderer createDom
|
||||
|
||||
proc onload(session: cstring) {.exportc.} =
|
||||
proc onload() =
|
||||
for i in 0..5: # 0_000:
|
||||
entries.add(cstring($i))
|
||||
init()
|
||||
|
||||
var dtReset = 100
|
||||
var dtTest = 500
|
||||
|
|
@ -181,3 +178,6 @@ proc onload(session: cstring) {.exportc.} =
|
|||
t += dtReset
|
||||
|
||||
timeout = setTimeout(test7, t)
|
||||
|
||||
onload()
|
||||
setRenderer createDom
|
||||
|
|
|
|||
1
tests/diffDomTests.nims
Normal file
1
tests/diffDomTests.nims
Normal file
|
|
@ -0,0 +1 @@
|
|||
--path: "../src"
|
||||
Loading…
Add table
Add a link
Reference in a new issue