Interface TableInstance<D>

Type Parameters

  • D extends object = {}

Hierarchy

Properties

allColumns: ColumnInstance<D>[]
allColumnsHidden: boolean
canNextPage: boolean
canPreviousPage: boolean
columns: ColumnInstance<D>[]
dispatch: TableDispatch<any>
expandedDepth: number
expandedRows: Row<D>[]
filteredFlatRows: Row<D>[]
filteredRows: Row<D>[]
filteredRowsById: Record<string, Row<D>>
flatHeaders: ColumnInstance<D>[]
flatRows: Row<D>[]
footerGroups: HeaderGroup<D>[]
getHooks: (() => Hooks<D>)

Type declaration

getTableBodyProps: ((propGetter?: TableBodyPropGetter<D>) => TableBodyProps)

Type declaration

    • (propGetter?: TableBodyPropGetter<D>): TableBodyProps
    • Parameters

      • Optional propGetter: TableBodyPropGetter<D>

      Returns TableBodyProps

getTableProps: ((propGetter?: TablePropGetter<D>) => TableProps)

Type declaration

getToggleAllPageRowsSelectedProps: ((props?: Partial<TableToggleAllRowsSelectedProps>) => TableToggleAllRowsSelectedProps)

Type declaration

getToggleAllRowsSelectedProps: ((props?: Partial<TableToggleAllRowsSelectedProps>) => TableToggleAllRowsSelectedProps)

Type declaration

getToggleHideAllColumnsProps: ((props?: Partial<TableToggleHideAllColumnProps>) => TableToggleHideAllColumnProps)

Type declaration

globalFilteredFlatRows: Row<D>[]
globalFilteredRows: Row<D>[]
globalFilteredRowsById: Record<string, Row<D>>
gotoPage: ((updater: number | ((pageIndex: number) => number)) => void)

Type declaration

    • (updater: number | ((pageIndex: number) => number)): void
    • Parameters

      • updater: number | ((pageIndex: number) => number)

      Returns void

groupedFlatRows: Row<D>[]
groupedRows: Row<D>[]
groupedRowsById: Record<string, Row<D>>
headerGroups: HeaderGroup<D>[]
headers: ColumnInstance<D>[]
isAllRowsExpanded: boolean
isAllRowsSelected: boolean
nextPage: (() => void)

Type declaration

    • (): void
    • Returns void

nonGroupedFlatRows: Row<D>[]
nonGroupedRowsById: Record<string, Row<D>>
onlyGroupedFlatRows: Row<D>[]
onlyGroupedRowsById: Record<string, Row<D>>
page: Row<D>[]
pageCount: number
pageOptions: number[]
plugins: PluginHook<D>[]
preExpandedRows: Row<D>[]
preFilteredFlatRows: Row<D>[]
preFilteredRows: Row<D>[]
preFilteredRowsById: Record<string, Row<D>>
preGlobalFilteredFlatRows: Row<D>[]
preGlobalFilteredRows: Row<D>[]
preGlobalFilteredRowsById: Record<string, Row<D>>
preGroupedFlatRows: Row<D>[]
preGroupedRows: Row<D>[]
preGroupedRowsById: Record<string, Row<D>>
preSortedRows: Row<D>[]
prepareRow: ((row: Row<D>) => void)

Type declaration

    • (row: Row<D>): void
    • Parameters

      Returns void

previousPage: (() => void)

Type declaration

    • (): void
    • Returns void

resetFiltersVisible: (() => void)

Type declaration

    • (): void
    • Returns void

resetModal: (() => void)

Type declaration

    • (): void
    • Returns void

rows: Row<D>[]
rowsById: Record<string, Row<D>>
selectedFlatRows: Row<D>[]
setAllFilters: ((updater: Filters<D> | ((filters: Filters<D>) => Filters<D>)) => void)

Type declaration

setCellState: ((rowPath: string[], columnId: IdType<D>, updater: unknown) => void)

Type declaration

    • (rowPath: string[], columnId: IdType<D>, updater: unknown): void
    • Parameters

      • rowPath: string[]
      • columnId: IdType<D>
      • updater: unknown

      Returns void

setColumnOrder: ((updater: IdType<D>[] | ((columnOrder: IdType<D>[]) => IdType<D>[])) => void)

Type declaration

setFilter: ((columnId: IdType<D>, updater: any) => void)

Type declaration

    • (columnId: IdType<D>, updater: any): void
    • Parameters

      • columnId: IdType<D>
      • updater: any

      Returns void

setFiltersVisible: ((filtersVisible: boolean) => void)

Type declaration

    • (filtersVisible: boolean): void
    • Parameters

      • filtersVisible: boolean

      Returns void

setGlobalFilter: ((filterValue: any) => void)

Type declaration

    • (filterValue: any): void
    • Parameters

      • filterValue: any

      Returns void

setHiddenColumns: ((param: IdType<D>[] | UpdateHiddenColumns<D>) => void)

Type declaration

    • (param: IdType<D>[] | UpdateHiddenColumns<D>): void
    • Parameters

      • param: IdType<D>[] | UpdateHiddenColumns<D>

      Returns void

setModal: ((modalProps: ModalProps) => void)

Type declaration

    • (modalProps: ModalProps): void
    • Parameters

      • modalProps: ModalProps

      Returns void

setPageSize: ((pageSize: number) => void)

Type declaration

    • (pageSize: number): void
    • Parameters

      • pageSize: number

      Returns void

setRowState: ((rowPath: string[], updater: unknown) => void)

Type declaration

    • (rowPath: string[], updater: unknown): void
    • Parameters

      • rowPath: string[]
      • updater: unknown

      Returns void

setSortBy: ((sortBy: SortingRule<D>[]) => void)

Type declaration

state: TableState<D>
toggleAllRowsExpanded: ((value?: boolean) => void)

Type declaration

    • (value?: boolean): void
    • Parameters

      • Optional value: boolean

      Returns void

toggleAllRowsSelected: ((value?: boolean) => void)

Type declaration

    • (value?: boolean): void
    • Parameters

      • Optional value: boolean

      Returns void

toggleFiltersVisible: (() => void)

Type declaration

    • (): void
    • Returns void

toggleGroupBy: ((columnId: IdType<D>, value?: boolean) => void)

Type declaration

    • (columnId: IdType<D>, value?: boolean): void
    • Parameters

      • columnId: IdType<D>
      • Optional value: boolean

      Returns void

toggleHideAllColumns: ((value?: boolean) => void)

Type declaration

    • (value?: boolean): void
    • Parameters

      • Optional value: boolean

      Returns void

toggleHideColumn: ((columnId: IdType<D>, value?: boolean) => void)

Type declaration

    • (columnId: IdType<D>, value?: boolean): void
    • Parameters

      • columnId: IdType<D>
      • Optional value: boolean

      Returns void

toggleRowExpanded: ((id: IdType<D>[], value?: boolean) => void)

Type declaration

    • (id: IdType<D>[], value?: boolean): void
    • Parameters

      • id: IdType<D>[]
      • Optional value: boolean

      Returns void

toggleRowSelected: ((rowId: IdType<D>, set?: boolean) => void)

Type declaration

    • (rowId: IdType<D>, set?: boolean): void
    • Parameters

      • rowId: IdType<D>
      • Optional set: boolean

      Returns void

toggleSortBy: ((columnId: IdType<D>, descending?: boolean, isMulti?: boolean) => void)

Type declaration

    • (columnId: IdType<D>, descending?: boolean, isMulti?: boolean): void
    • Parameters

      • columnId: IdType<D>
      • Optional descending: boolean
      • Optional isMulti: boolean

      Returns void

totalColumnsWidth: number
visibleColumns: ColumnInstance<D>[]

Generated using TypeDoc