@ni/spright-components
Version:
NI Spright Components
47 lines (46 loc) • 991 B
TypeScript
import { FoundationElement } from '@ni/fast-foundation';
declare global {
interface HTMLElementTagNameMap {
'spright-chat-input': ChatInput;
}
}
/**
* A Spright component for composing and sending a chat message
*/
export declare class ChatInput extends FoundationElement {
placeholder?: string;
sendButtonLabel?: string;
value: string;
tabIndex: number;
/**
* @internal
*/
textArea?: HTMLTextAreaElement;
/**
* @internal
*/
disableSendButton: boolean;
/**
* @internal
*/
textAreaKeydownHandler(e: KeyboardEvent): boolean;
/**
* @internal
*/
textAreaInputHandler(): void;
/**
* @internal
*/
valueChanged(): void;
/**
* @internal
*/
connectedCallback(): void;
/**
* @internal
*/
sendButtonClickHandler(): void;
private shouldDisableSendButton;
private resetInput;
}
export declare const chatInputTag = "spright-chat-input";