Retained lifecycle returned by a custom editor's mount method.
Members 5
update
reposition
commit
cancel
destroy
Declaration
View full TypeScript declaration
export interface CellEditorInstance {
): string | undefined | Promise<string | undefined>;
Referenced by
Workspace packages depending on @sheetwrite/vue
@sheetwrite/docs-startdependency
Public exports naming CellEditorInstance
interface CellEditorContext {
readonly grid: Grid;
readonly address: Readonly<CellAddress>;
readonly viewAddress: Readonly<CellAddress>;
readonly column: Readonly<Column>;
readonly value: CellScalar;
readonly text: string;
readonly initialInput: string | undefined;
readonly selectAll: boolean;
readonly label: string;
readonly signal: AbortSignal;
commit(value: string, navigation?: CellEditorNavigation): void;
cancel(): void;
}interface CellEditorContext {
readonly grid: Grid;
readonly address: Readonly<CellAddress>;
readonly viewAddress: Readonly<CellAddress>;
readonly column: Readonly<Column>;
readonly value: CellScalar;
readonly text: string;
readonly initialInput: string | undefined;
readonly selectAll: boolean;
readonly label: string;
readonly signal: AbortSignal;
commit(value: string, navigation?: CellEditorNavigation): void;
cancel(): void;
}interface CellEditorContext {
readonly grid: Grid;
readonly address: Readonly<CellAddress>;
readonly viewAddress: Readonly<CellAddress>;
readonly column: Readonly<Column>;
readonly value: CellScalar;
readonly text: string;
readonly initialInput:
string | undefined;
readonly selectAll: boolean;
readonly label: string;
readonly signal: AbortSignal;
commit(
value: string,
navigation?: CellEditorNavigation,
): void;
cancel(): void;
}Immutable state and guarded completion callbacks for one mounted editor.API reference →interface CellEditorRect {
readonly x: number;
readonly y: number;
readonly width: number;
readonly height: number;
}interface CellEditorRect {
readonly x: number;
readonly y: number;
readonly width: number;
readonly height: number;
}interface CellEditorRect {
readonly x: number;
readonly y: number;
readonly width: number;
readonly height: number;
}Viewport-relative geometry of the cell currently owned by an editor.API reference →type CellEditorNavigation = "down" | "right" | "left" | "none";type CellEditorNavigation = "down" | "right" | "left" | "none";type CellEditorNavigation =
| "down"
| "right"
| "left"
| "none";Selection movement applied after a successful editor commit.API reference →