Textarea

Multi-line inputs for forms

Contents

preventNewlines treats the field as a wrapping single line. Enter does not insert a newline, and pasted or dropped line breaks are flattened to spaces.

Try pressing Enter, and pasting text that spans several lines, in both fields below.

Inputs in Prevent newlines
preventNewlines ?: boolean = false

Treat the field as a wrapping single line. Enter does not insert a newline, and pasted or dropped line breaks are flattened to spaces.

rows ?: number = 2
Also set in this example
control : FormControl<string>
placeholder ?: string = ''
Outputs
inputBlur ?: any = new EventEmitter<void>()
inputFocus ?: any = new EventEmitter<void>()
inputHandled ?: any = new EventEmitter<void>()
inputSelect ?: any = new EventEmitter<TextareaSelectEvent>()

Event emitted everytime a user highlights a text in the textarea