element | HTMLElement | The root DOM element owned by this instance. |
|---|
update | (patch: Partial<Pick<GridOptions<R>, "Columns" | "Rows" | "Config">>) => void | Apply a partial options update to this instance. |
|---|
setSearch | (text: string) => void | Apply a new text search. |
|---|
setData | (rows: R[]) => void | Replace the supplied row data. |
|---|
getSelectedRows | () => R[] | Return the selected row objects. |
|---|
clearSelection | () => void | Clear the current row selection. |
|---|
selectPage | () => void | Select rows on the current page. |
|---|
applyRowValues | (ids: (string | number)[], values: Partial<R>, options?: { EmitCellEvents?: boolean; }) => GridEditState | Stage values on the specified rows. Optional EmitCellEvents controls individual change notifications. |
|---|
applyCells | (cells: { RowId: string | number; Field: Extract<keyof R, string>; Value: unknown; }[], options?: { EmitCellEvents?: boolean; }) => GridEditState | |
|---|
previewPaste | (text: string, rowId: string, field: Extract<keyof R, string>) => GridPastePreview | |
|---|
applyPaste | (token: string) => GridEditState | |
|---|
undo | () => GridEditState | |
|---|
redo | () => GridEditState | |
|---|
getFocusedCell | () => { RowId: string; Field: string; } | null | |
|---|
getCellRange | () => { RowIds: string[]; Fields: string[]; } | null | |
|---|
focusCell | (rowId: string, field: string) => void | |
|---|
getHistoryState | () => { CanUndo: boolean; CanRedo: boolean; } | |
|---|
getRows | (scope?: GridScope) => R[] | |
|---|
summarize | (options?: GridSummaryOptions) => GridSummary | |
|---|
exportXlsx | (options?: { FileName?: string; Scope?: GridScope; SheetName?: string; }) => void | |
|---|
getNamedViews | () => GridNamedView[] | |
|---|
setNamedViews | (views: GridNamedView[]) => void | |
|---|
requestSaveView | (name: string, scope?: "Personal" | "Team", key?: string) => void | |
|---|
mountWorkbench | (host: HTMLElement) => () => void | |
|---|
getView | () => GridView | |
|---|
setReport | (report: GridReport | null) => GridReport | Null clears grouping and pivot and returns to Records. |
|---|
applyView | (view: GridView) => GridView | |
|---|
getColumnLayout | () => GridColumnLayout | |
|---|
applyColumnLayout | (layout: GridColumnLayout) => GridColumnLayout | |
|---|
resetFilters | () => void | |
|---|
fitColumns | () => void | |
|---|
autoSizeColumns | () => void | |
|---|
flushEdits | () => Promise<GridEditState> | Commit the active editor and deliver pending edits without starting a save. |
|---|
beginSave | () => Promise<GridSaveRequest<R>> | Begin a save and obtain the token and changed rows. Await your application’s persistence before acknowledging success. |
|---|
completeSave | (token: string, rows: R[]) => R[] | Acknowledge a successful save with its matching token and canonical rows. |
|---|
failSave | (token: string, errors?: GridSaveError[]) => GridEditState | Reject the matching save; pending edits are retained. |
|---|
cancelChanges | () => Promise<GridEditState> | Discard pending changes. |
|---|
getEditState | () => GridEditState | Read dirty, editing and saving state. |
|---|
completeDataRequest | (requestId: string, rows: R[], total: number, summary?: Record<string, number | null>) => boolean | Supply the rows and total count for a matching data request. |
|---|
failDataRequest | (requestId: string, message: string) => boolean | Report a failure for a matching data request. |
|---|
retryLoading | () => void | Retry a failed data load. |
|---|
setColumnVisible | (field: Extract<keyof R, string>, visible: boolean) => void | Show or hide one column. |
|---|
setRowExpanded | (rowId: string, expanded: boolean) => void | Open or close a row’s detail view. |
|---|
exportCsv | (options?: { FileName?: string; OnlySelected?: boolean; }) => void | Export rows as CSV; optionally limit the export to selected rows. |
|---|
destroy | () => void | Dispose the instance and its listeners when the view is removed. |
|---|