Interface TableOptions<Data>

Type interface of Table specific options.

Type Parameters

Hierarchy

Properties

autoResetHiddenColumns?: boolean
defaultColumn?: Partial<Column<Data>>
getRowId?: ((originalRow: Data, relativeIndex: number, parent?: Row<Data>) => string)

Type declaration

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

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

      Returns string

getSubRows?: ((originalRow: Data, relativeIndex: number) => Data[])

Type declaration

    • (originalRow: Data, relativeIndex: number): Data[]
    • Parameters

      • originalRow: Data
      • relativeIndex: number

      Returns Data[]

initialState?: Partial<TableState<Data>>
onStateChange?: StateChangeHandler<TableState<Data>>

Callback executed when table's state is updated. The function must be wrapped in useCallback hook.

stateReducer?: ((newState: TableState<Data>, action: ActionType, previousState: TableState<Data>, instance?: TableInstance<Data>) => TableState<Data>)

Type declaration

useControlledState?: ((state: TableState<Data>, meta: MetaBase<Data>) => TableState<Data>)

Type declaration

Generated using TypeDoc