Node~utils Class
Augments Y.Node with useful functions.
Methods
adjustTextareaHeight
(
static
-
textarea
Adjusts the height of a textarea to fit the text.
Parameters:
-
textarea
Nodetextarea to adjust
selectAllText
()
Selects all of the text in a text input or textarea.
selectRange
(
-
start
-
length
Selects part of the text in a text input or textarea.
setCaretPosition
(
-
pos
Positions the caret inside a text input or textarea.
Parameters:
-
pos
Numberthe location of the caret
Properties
max_textarea_height
Number
static
Maximum height in pixels allowed for Y.Node.adjustTextareaHeight()
.