Textarea

Multi-line inputs for forms

Contents

A clear button can be added to the left and right to the footer of the textarea. By default it will be placed to the right. The clear button will clear the contents of the textarea

The clear content can also be positioned to the left if needed.

The text and icon of the clear button can be customized as needed.

The clear button can also just be an icon.

The max character takes precedence in positioning within the footer. The clear button will always be at the opposite side of the max character. count

The error message overrides anything on the left side.

Inputs in Clear button
autoHideCounter ?: boolean = true

Hides max character counter when blurred out of field

clearButtonIcon ?: IconName = 'flBinOutline'
clearButtonIconLabel ?: string
clearButtonPosition ?: TextAreaClearContentButtonPosition = 'right'

Position in the footer of the clear button. Input does nothing if `maxCharacter` is enabled, it will always go to the opposite side of `maxCharacter`

clearButtonText ?: string
enableClearButton ?: boolean = false
maxCharacter ?: number
maxCharacterPosition ?: TextareaMaxCharPosition = TextareaMaxCharPosition.LEFT
Also set in this example
control : FormControl<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