Interface UseTableInstanceProps<D>

Type Parameters

  • D extends object

Hierarchy

Properties

allColumns: ColumnInstance<D>[]
allColumnsHidden: boolean
columns: ColumnInstance<D>[]
dispatch: TableDispatch<any>
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

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

Type declaration

headerGroups: HeaderGroup<D>[]
headers: ColumnInstance<D>[]
plugins: PluginHook<D>[]
prepareRow: ((row: Row<D>) => void)

Type declaration

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

      Returns void

rows: Row<D>[]
rowsById: Record<string, Row<D>>
setHiddenColumns: ((param: IdType<D>[] | UpdateHiddenColumns<D>) => void)

Type declaration

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

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

      Returns void

state: TableState<D>
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

totalColumnsWidth: number
visibleColumns: ColumnInstance<D>[]

Generated using TypeDoc