NEURALNG

TEXTAREA

API

A deliberately small directive API layered on the complete HTMLTextAreaElement contract.

Directive

NeuralTextareatextarea[neuralTextarea]

exportAs: neuralTextarea

Inputs

NameTypeDefaultDescription
fluid boolean false Fills the available inline width.
autoResize boolean false Uses CSS field-sizing: content and disables manual resizing.
resizeMode NeuralTextareaResizeMode 'vertical' Selects vertical, horizontal, both or no manual resizing.
unstyled boolean false Removes NeuralNg visual classes.

Methods

focus(options?: FocusOptions) => void

Focuses the native textarea.

select() => void

Selects the complete native value.

Native API remains public

Rows, cols, name, placeholder, autocomplete, wrap, minlength, maxlength, required, disabled, readonly, spellcheck and form attributes stay native. Listen to native input, change, focus and blur events without aliases.

Public types and compatibility

NeuralTextareaResizeMode

'vertical' | 'horizontal' | 'both' | 'none'

TextareaComponent remains a deprecated compatibility alias; new code imports NeuralTextarea.