Reactive value (#129)
Change proposed in https://github.com/pragmagic/karax/issues/61#issuecomment-522233192
This commit is contained in:
parent
1911a1cfe0
commit
f6bda9ae89
1 changed files with 2 additions and 0 deletions
|
|
@ -126,6 +126,8 @@ proc tcall2(n, tmpContext: NimNode): NimNode =
|
||||||
result.add newDotAsgn(tmp, key, newCall("style", toKstring x[1]))
|
result.add newDotAsgn(tmp, key, newCall("style", toKstring x[1]))
|
||||||
elif key in SpecialAttrs:
|
elif key in SpecialAttrs:
|
||||||
result.add newDotAsgn(tmp, key, x[1])
|
result.add newDotAsgn(tmp, key, x[1])
|
||||||
|
if key == "value":
|
||||||
|
result.add newCall(bindSym"setAttr", tmp, newLit(key), x[1])
|
||||||
elif eqIdent(key, "setFocus"):
|
elif eqIdent(key, "setFocus"):
|
||||||
result.add newCall(key, tmp, x[1], ident"kxi")
|
result.add newCall(key, tmp, x[1], ident"kxi")
|
||||||
elif eqIdent(key, "events"):
|
elif eqIdent(key, "events"):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue