jodit-pro
Version:
PRO Version of Jodit Editor
39 lines (38 loc) • 1.18 kB
TypeScript
import type { IViewBased } from "jodit/esm/types/index";
import type { ISelectionContext } from "../../interface/index";
import { UIElement } from "jodit/esm/core/ui/index";
export declare class UIInputArea extends UIElement<IViewBased> {
protected options: {
placeholderText: string;
sendShortcut: string;
sendOnEnter: boolean;
};
private textarea;
private sendButton;
private stopButton;
private contextBadges;
private contexts;
private isLoading;
className(): string;
constructor(view: IViewBased, options: {
placeholderText: string;
sendShortcut: string;
sendOnEnter: boolean;
});
setParentView(view: IViewBased): this;
protected render(): string;
protected onInputRowClick(): void;
protected afterRender(): void;
private createControls;
private attachHandlers;
private onSend;
private onStop;
setContexts(contexts: ISelectionContext[]): void;
private updateContextBadges;
private createContextBadge;
setLoading(loading: boolean): void;
focus(): void;
setValue(value: string): void;
getValue(): string;
destruct(): void;
}