Interface GridTools<DataType>

Type Parameters

Hierarchy

  • ReturnType<typeof useDataGridTools>
    • GridTools

Properties

__lastExpRowCache: MutableRefObject<null | {
    index: number;
    isOpen: boolean;
}>
activeRow: undefined | string
clearActiveRow: (() => void)

Type declaration

    • (): void
    • Returns void

clearExpandRowHeightCache: (() => void)

Type declaration

    • (): void
    • Returns void

closeExpandedRows: (() => void)

Type declaration

    • (): void
    • Returns void

columnDimensions: Record<string, number>
columnOrder: KeyLiteralType<DataType>[]
expandRowHeightCache: Record<number, undefined | number>
expandedRowKeys: Set<number>
getColumnWidth: ((colKey: string) => number)

Type declaration

    • (colKey: string): number
    • Parameters

      • colKey: string

      Returns number

getExpandRowHeightFromCache: ((index: number) => undefined | number)

Type declaration

    • (index: number): undefined | number
    • Parameters

      • index: number

      Returns undefined | number

isColumnGroupingEnabled: boolean
isColumnIsDraggable: ((columnKey: string) => undefined | boolean)

Type declaration

    • (columnKey: string): undefined | boolean
    • Parameters

      • columnKey: string

      Returns undefined | boolean

isColumnIsResizable: ((columnKey: string) => undefined | boolean)

Type declaration

    • (columnKey: string): undefined | boolean
    • Parameters

      • columnKey: string

      Returns undefined | boolean

isColumnResizing: boolean
isDarkModeEnabled: boolean
isDynamicRowExpandHeightEnabled: boolean
isFilterFnIsActive: ((columnKey: string) => undefined | boolean)

Type declaration

    • (columnKey: string): undefined | boolean
    • Parameters

      • columnKey: string

      Returns undefined | boolean

isFilterMenuVisible: boolean
isFullScreenModeEnabled: boolean
isHeaderIsActive: ((key: string) => boolean)

Type declaration

    • (key: string): boolean
    • Parameters

      • key: string

      Returns boolean

isHeaderMenuActive: boolean
isRightClickIsActive: undefined | boolean
isRowActive: ((uniqueRowKey: string) => boolean)

Type declaration

    • (uniqueRowKey: string): boolean
    • Parameters

      • uniqueRowKey: string

      Returns boolean

isRowExpanded: ((uniqueRowKey: number) => boolean)

Type declaration

    • (uniqueRowKey: number): boolean
    • Parameters

      • uniqueRowKey: number

      Returns boolean

isRowSelected: ((uniqueRowKey: string) => boolean)

Type declaration

    • (uniqueRowKey: string): boolean
    • Parameters

      • uniqueRowKey: string

      Returns boolean

isVirtualizationIsEnabled: boolean
onRowClick: ((e: MouseEvent<HTMLDivElement, MouseEvent>, cellData: DataType) => void)

Type declaration

    • (e: MouseEvent<HTMLDivElement, MouseEvent>, cellData: DataType): void
    • Parameters

      • e: MouseEvent<HTMLDivElement, MouseEvent>
      • cellData: DataType

      Returns void

pinnedColumns: {
    left: KeyLiteralType<DataType>[];
    right: KeyLiteralType<DataType>[];
}

Type declaration

selectedRows: Set<DataGridRowKeyDefinition>
updateActiveHeader: ((key: undefined | string) => void)

Type declaration

    • (key: undefined | string): void
    • Parameters

      • key: undefined | string

      Returns void

updateActiveRow: ((uniqueRowKey: string) => void)

Type declaration

    • (uniqueRowKey: string): void
    • Parameters

      • uniqueRowKey: string

      Returns void

updateColumnGrouping: (() => void)

Type declaration

    • (): void
    • Returns void

updateColumnOrder: ((collection: KeyLiteralType<DataType>[]) => void)

Type declaration

updateColumnResizingStatus: ((val: boolean) => void)

Type declaration

    • (val: boolean): void
    • Parameters

      • val: boolean

      Returns void

updateColumnVisibility: ((key: string) => Set<KeyLiteralType<DataType>>)

Type declaration

updateColumnWidth: ((key: string, newWidth: number) => void)

Type declaration

    • (key: string, newWidth: number): void
    • Parameters

      • key: string
      • newWidth: number

      Returns void

updateColumnWidthMultiple: ((collection: Record<string, number>) => void)

Type declaration

    • (collection: Record<string, number>): void
    • Parameters

      • collection: Record<string, number>

      Returns void

updateDarkMode: (() => void)

Type declaration

    • (): void
    • Returns void

updateExpandRowHeightCache: ((index: number, height: number, forceUpdate?: boolean) => void)

Type declaration

    • (index: number, height: number, forceUpdate?: boolean): void
    • Parameters

      • index: number
      • height: number
      • forceUpdate: boolean = false

      Returns void

updateFilterMenuVisibility: (() => void)

Type declaration

    • (): void
    • Returns void

updateFullScreenMode: (() => void)

Type declaration

    • (): void
    • Returns void

updatePinnedColumns: ((colKey: string, position: "left" | "right") => void)

Type declaration

    • (colKey: string, position: "left" | "right"): void
    • Parameters

      • colKey: string
      • position: "left" | "right"

      Returns void

updateRowExpansion: ((index: number) => void)

Type declaration

    • (index: number): void
    • Parameters

      • index: number

      Returns void

updateSelectedRows: ((value: DataGridRowKeyDefinition) => void)

Type declaration

updateSelectedRowsMultiple: ((collection: Set<DataGridRowKeyDefinition>) => void)

Type declaration

visibleColumns: Set<KeyLiteralType<DataType>>

Methods

Generated using TypeDoc