UNPKG

@kelvininc/ui-components

Version:
35 lines (34 loc) 989 B
import { EventEmitter } from '../../stencil-public-runtime'; import { ITextArea, ITextAreaEvents } from './types'; import { EIconName } from '../icon/icon.types'; export declare class KvTextArea implements ITextArea, ITextAreaEvents { /** @inheritdoc */ icon?: EIconName; /** @inheritdoc */ text?: string; /** @inheritdoc */ placeholder?: string; /** @inheritdoc */ maxCharLength?: number; /** @inheritdoc */ counter?: boolean; /** @inheritdoc */ counterAlwaysVisible?: boolean; /** @inheritdoc */ disabled: boolean; /** @inheritdoc */ textChange: EventEmitter<string>; handleKeyDown(ev: KeyboardEvent): void; private inputRef; curCharLength: number; showPlaceholder: boolean; private syncTextValues; private getTextLength; private onInput; private onKeyPress; private onClipboardPaste; private focusTextArea; private blurTextArea; private updateInputRef; render(): any; }