Autoresize Element Modifier for Ember.js
npm install ember-autoresize-modifierElement Modifier that resizes a accordingly to the input.
* Ember.js v4.12 or above
* Ember CLI v4.12 or above
* Node.js v18 or above
``sh`
ember install ember-autoresize-modifier
`hbs`
If you bind a property to the value of the textarea, you must also pass it as
an argument to {{autoresize}} modifier. Otherwise the textarea won't resize
when the value is changed programmatically:
`hbs`
The addon takes resizes the textarea by setting height / width CSSheight
property. It overrules all custom values of the / width property.height
Therefore styles of textareas using this modifier must not rely on /width CSS property.
Use CSS min-height / min-width and max-height / max-width` properties
to enforce a minimum and/or maximum height / width.
Known Limitations
------------------------------------------------------------------------------
- Element Modifiers are not executed in server-side rendering / FastBoot. The
textarea won't be resized until rehydration.
See the Contributing guide for details.
This project is licensed under the MIT License.