To set the initial minimum height (in rows), set the rows prop to the desired number of lines (or leave it at the default of 2), And then set maximum rows that the text area will grow to (before showing a scrollbar) by setting the max-rows prop to the maximum number of lines of text. The height of the textarea will either grow or shrink to fit the content (grow to a maximum of max-rows or shrink to a minimum of rows). can also automatically adjust its height (text rows) to fit the content, even as the user enters or deletes text. Setting it to null or a value below 2 will result in the default of 2 being used. If no value is provided to rows, then it will default to 2 (the browser default and minimum acceptable value). To set the height of, set the rows prop to the desired number of rows.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |