![]() var ta = document. This event is fired every time autosize adjusts the textarea height. Overflow text causes the text field to expand (shifting screen elements downward), and text wraps onto a new line. Multi-line text fields show all user input at once. ![]() stroy( document.querySelectorAll( 'textarea')) Textarea autosize Material UI 2 Textarea autosize Multi-line text fields grow to accommodate multiple lines of text. Removes Autosize and reverts any changes it made to the textarea element. Init var ta = document.querySelector( 'textarea') ![]() There is no efficient way for Autosize to monitor for when another script has changed the textarea value or for changes in layout that impact the textarea element. Latest version: 6.0.1, last published: 3 months ago. Autosize will automatically adjust the textarea height on keyboard and window resize events. Autosize is a small, stand-alone script to automatically adjust textarea height to fit text. Triggers the height adjustment for an assigned textarea element. from a NodeListĪutosize( document.querySelectorAll( 'textarea')) Īutosize( document.querySelector( 'textarea')) The autosize function accepts a single textarea element, or an array or array-like object (such as a NodeList or jQuery collection) of textarea elements. Released under the MIT License, source on Github ( changelog)ĭownload Install via NPM npm install autosize
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |