diff options
author | Dominik Picheta <dominikpicheta@gmail.com> | 2018-05-12 15:28:37 +0100 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-05-14 13:03:18 +0200 |
commit | 6b5ad56ab3b5c6f62f8a5f312fe282ff05f7bafa (patch) | |
tree | 527d593c1df624de84706f0caf0809061082e6f0 | |
parent | 5fcfc43a205aa9ccc4da46aeca29f7f7e86a94af (diff) | |
download | Nim-6b5ad56ab3b5c6f62f8a5f312fe282ff05f7bafa.tar.gz |
Adds TextAreaElement type.
-rw-r--r-- | lib/js/dom.nim | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/lib/js/dom.nim b/lib/js/dom.nim index 541c14866..fd81fdf3f 100644 --- a/lib/js/dom.nim +++ b/lib/js/dom.nim @@ -176,6 +176,12 @@ type text*: cstring value*: cstring + TextAreaElement* = ref object of ElementObj + value*: cstring + selectionStart*, selectionEnd*: int + selectionDirection*: cstring + rows*, cols*: int + FormElement* = ref FormObj FormObj {.importc.} = object of ElementObj action*: cstring @@ -502,7 +508,7 @@ proc removeAttributeNode*(n, attr: Node) proc removeChild*(n, child: Node) proc replaceChild*(n, newNode, oldNode: Node) proc replaceData*(n: Node, start, len: int, text: cstring) -proc scrollIntoView*(n: Node) +proc scrollIntoView*(n: Node, alignToTop: bool=true) proc setAttribute*(n: Node, name, value: cstring) proc setAttributeNode*(n: Node, attr: Node) |