Expandable textarea

Pastanaga textarea is resizable like a basic HTML textarea element, but in some cases where the text can be really long and the form is in a side panel for example, the textarea may still be too small to display properly its full text content.

In such case, expandable textarea is the solution as it extends Pastanaga textarea (meaning all options from Pastanaga textarea are available) and displays a button to make the textarea fullscreen in a modal.

Extra prompt

Input

modalTitle
Required string used as title for the modal opened when clicking on the expand button

Inherited from TextareaComponent

Inputs

autoHeight
allow textarea to expand with user entries or according to currentValue: boolean (default: false)
resizable
boolean allowing user to resize the textarea (default: true)
rows
number of rows displayed in the textarea (default: 1)
maxRows
max number of rows when used in combination with autoHeight. Not used when a maxHeight is defined (optional)
maxHeight
number of pixels defining the maxHeight of the textarea (optional)

Outputs

resizing
Event triggered when resizing the textarea. It is triggered only if resizable is true, and it contains the DOMRect of the textarea element.
{{codeExample}}