Added toSelected (#145)

Co-authored-by: dawkot <dawkot@github.com>
This commit is contained in:
dawkot 2020-05-02 13:42:53 +02:00 • committed by GitHub
commit f1cd9e606d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -815,5 +815,8 @@ proc toChecked*(checked: bool): cstring =
proc toDisabled*(disabled: bool): cstring = proc toDisabled*(disabled: bool): cstring =
(if disabled: cstring"disabled" else: cstring(nil)) (if disabled: cstring"disabled" else: cstring(nil))
proc toSelected*(selected: bool): cstring =
(if selected: cstring"selected" else: cstring(nil))
proc vnodeToDom*(n: VNode; kxi: KaraxInstance = nil): Node = proc vnodeToDom*(n: VNode; kxi: KaraxInstance = nil): Node =
result = toDom(n, useAttachedNode = false, kxi) result = toDom(n, useAttachedNode = false, kxi)