@kelvininc/ui-components
Version:
Kelvin UI Components
33 lines (32 loc) • 943 B
TypeScript
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 */
disabled: boolean;
/** @inheritdoc */
textChange: EventEmitter<string>;
handleKeyDown(ev: KeyboardEvent): void;
private inputRef;
curCharLength: number;
showPlaceholder: boolean;
syncTextValues(text?: string): void;
private getTextLength;
private onInput;
private onKeyPress;
private onClipboardPaste;
private focusTextArea;
private blurTextArea;
private updateInputRef;
render(): any;
}