Q autogrow Class
Plugin that allows a textbox or textarea to grow to encompass its content as it changes
Constructor
Q autogrow
Parameters:
-
[options]
Object
optional
-
[maxWidth]
Number | Element
optional
maxWidth The input won't get larger than this number or element
-
[minWidth]
Number
optional
minWidth The input won't get smaller than this
-
[comfortZone]
Number
optional
How many pixels of padding to allocate for typing ahead
-
[Q.Event]
Object
optional
[options.onResize] Triggered during a size change, its "this" object is the jQuery selector of the plugin. If used with a text input, the first parameter is the new width.