DataEditorRef
The data editor ref allows imperative interaction with the data editor.
export interface DataEditorRef {
appendRow: (col: number, openOverlay?: boolean) => Promise<void>;
updateCells: (cells: DamageUpdateList) => void;
getBounds: (col?: number, row?: number) => Rectangle | undefined;
focus: () => void;
emit: (eventName: EmitEvents) => Promise<void>;
scrollTo: (
col: number | { amount: number; unit: "cell" | "px" },
row: number | { amount: number; unit: "cell" | "px" },
dir?: "horizontal" | "vertical" | "both",
paddingX?: number,
paddingY?: number,
options?: {
hAlign?: "start" | "center" | "end";
vAlign?: "start" | "center" | "end";
}
) => void;
remeasureColumns: (cols: CompactSelection) => void;
}appendRow
emit
focus
getBounds
remeasureColumns
scrollTo
updateCells
Last updated