Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface TableInstance<D>

Type Parameters

  • D extends object = {}

Hierarchy

Index

Properties

allColumns: ColumnInstance<D>[]
allColumnsHidden: boolean
autoResetHiddenColumns?: boolean
columns: ColumnInstance<D>[]
data: readonly D[]
defaultColumn?: Partial<Column<D>>
dispatch: TableDispatch<any>
flatHeaders: ColumnInstance<D>[]
flatRows: Row<D>[]
footerGroups: HeaderGroup<D>[]
headerGroups: HeaderGroup<D>[]
headers: ColumnInstance<D>[]
initialState?: Partial<TableState<D>>
plugins: PluginHook<D>[]
rows: Row<D>[]
rowsById: Record<string, Row<D>>
state: TableState<D>
totalColumnsWidth: number
visibleColumns: ColumnInstance<D>[]

Methods

  • getHooks(): Hooks<D>
  • Returns Hooks<D>

  • getRowId(originalRow: D, relativeIndex: number, parent?: Row<D>): string
  • Parameters

    • originalRow: D
    • relativeIndex: number
    • Optional parent: Row<D>

    Returns string

  • getSubRows(originalRow: D, relativeIndex: number): D[]
  • Parameters

    • originalRow: D
    • relativeIndex: number

    Returns D[]

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

    • Optional propGetter: TableBodyPropGetter<D>

    Returns TableBodyProps

  • getTableProps(propGetter?: TablePropGetter<D>): TableProps
  • Parameters

    • Optional propGetter: TablePropGetter<D>

    Returns TableProps

  • getToggleHideAllColumnsProps(props?: Partial<TableToggleHideAllColumnProps>): TableToggleHideAllColumnProps
  • Parameters

    • Optional props: Partial<TableToggleHideAllColumnProps>

    Returns TableToggleHideAllColumnProps

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

    Returns void

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

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

    Returns void

  • stateReducer(newState: TableState<D>, action: ActionType, previousState: TableState<D>, instance?: TableInstance<D>): TableState<D>
  • Parameters

    • newState: TableState<D>
    • action: ActionType
    • previousState: TableState<D>
    • Optional instance: TableInstance<D>

    Returns TableState<D>

  • toggleHideAllColumns(value?: boolean): void
  • Parameters

    • Optional value: boolean

    Returns void

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

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

    Returns void

  • useControlledState(state: TableState<D>, meta: MetaBase<D>): TableState<D>
  • Parameters

    • state: TableState<D>
    • meta: MetaBase<D>

    Returns TableState<D>

Generated using TypeDoc