import { KbqTextareaModule } from '@koobiq/components/textarea';

KbqTextarea

directiveСкопировать ссылку на KbqTextarea
@Directive({ selector: 'textarea[kbqTextarea]', exportAs: 'kbqTextarea' })
class KbqTextarea implements KbqFormFieldControl<any>, CanUpdateErrorState {
readonly canGrow = input<boolean>(true);
readonly maxRows = input<number | undefined>();
readonly errorStateMatcher = input<ErrorStateMatcher>();
readonly freeRowsHeight = input<number | undefined>();
readonly ngControl: NgControl | null;
readonly parentForm: NgForm | null;
readonly parentFormGroup: FormGroupDirective | null;
readonly defaultErrorStateMatcher: ErrorStateMatcher;
readonly errorState: Signal<boolean>;
readonly maxRowLimitReached: Signal<boolean>;
updateErrorState(): void;
focus(): void;
}
canGrowinputСкопировать ссылку на canGrowboolean

Parameter enables or disables the ability to automatically increase the height. If set to false, the textarea becomes vertically resizable.

maxRowsinputСкопировать ссылку на maxRowsnumber | undefined

Maximum number of lines to which the textarea will grow. Unlimited when unset.

errorStateMatcherinputСкопировать ссылку на errorStateMatcherErrorStateMatcher

An object used to control when error messages are shown.

freeRowsHeightinputСкопировать ссылку на freeRowsHeightnumber | undefined

Distance from the last line to the bottom border. Defaults to a single line height.

errorStateСкопировать ссылку на errorStateSignal<boolean>

Whether the component is in an error state.

maxRowLimitReachedСкопировать ссылку на maxRowLimitReachedSignal<boolean>

Flag that will be set to true when the maximum number of lines is reached. Maximum number of rows can be set using the maxRows input.

focus()Скопировать ссылку на focus()void

Focuses the textarea.

KBQ_TEXTAREA_VALUE_ACCESSOR

constСкопировать ссылку на KBQ_TEXTAREA_VALUE_ACCESSOR
const KBQ_TEXTAREA_VALUE_ACCESSOR: InjectionToken<{ value: any }>;
Предложения по улучшению
Если вы нашли ошибку или хотите доработать статью, создайте запрос на GitHub.