Installation
-
add
adaptive-textareas.jsto your project files and import it in your HTML code:<script type="text/javascript" src="adaptive-textareas.js"></script> -
initialize adaptive
<textarea>:<textarea id="example"></textarea>adaptiveTextarea.enable('#example');
Documentation
adaptiveTextarea function is used to initialize an adaptative <textarea>:
-
adaptiveTextarea(element, [, minRows], maxRows])- Parameter
element - Parameter
minRowsOptional - Parameter
maxRowsOptional
the id of the desired
<textarea>(or the element itself) to be turned into an adaptive<textarea>minimum number of rows (default: 1)
maximum number of rows (default: 8)
- Parameter
License
This project is released under MIT license.