chart-0714
Version:
Professional trading chart library with advanced customization for trading journal apps
23 lines (22 loc) • 591 B
TypeScript
import { TextStyle } from '../renderers/unified/TextRenderer';
export interface TextInputOptions {
initialText?: string;
initialStyle?: TextStyle;
position: {
x: number;
y: number;
};
onConfirm: (text: string, style: TextStyle) => void;
onCancel: () => void;
}
export declare class TextInputModal {
private container;
private modal;
private options;
constructor(container: HTMLElement);
show(options: TextInputOptions): void;
private createModal;
private setupEventHandlers;
private handleConfirm;
private close;
}