Adds TextAreaElement type.

This commit is contained in:
Dominik Picheta 2018-05-12 15:28:37 +01:00 • committed by Andreas Rumpf
commit 6b5ad56ab3

View file

@ -176,6 +176,12 @@ type
text*: cstring text*: cstring
value*: cstring value*: cstring
TextAreaElement* = ref object of ElementObj
value*: cstring
selectionStart*, selectionEnd*: int
selectionDirection*: cstring
rows*, cols*: int
FormElement* = ref FormObj FormElement* = ref FormObj
FormObj {.importc.} = object of ElementObj FormObj {.importc.} = object of ElementObj
action*: cstring action*: cstring
@ -502,7 +508,7 @@ proc removeAttributeNode*(n, attr: Node)
proc removeChild*(n, child: Node) proc removeChild*(n, child: Node)
proc replaceChild*(n, newNode, oldNode: Node) proc replaceChild*(n, newNode, oldNode: Node)
proc replaceData*(n: Node, start, len: int, text: cstring) 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 setAttribute*(n: Node, name, value: cstring)
proc setAttributeNode*(n: Node, attr: Node) proc setAttributeNode*(n: Node, attr: Node)