Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface LineUpLiteTableInstance<D>

Type Parameters

Hierarchy

  • TableInstance<D>
  • UseFiltersInstanceProps<D>
  • UseExpandedInstanceProps<D>
  • UseGroupByInstanceProps<D>
  • UseRowSelectInstanceProps<D>
  • UseGroupingOptionsInstanceProps
  • UseSortByInstanceProps<D>
    • LineUpLiteTableInstance

Index

Properties

allColumns: ColumnInstance<D>[]
allColumnsHidden: boolean
autoResetHiddenColumns?: boolean
columns: ColumnInstance<D>[]
data: readonly D[]
defaultColumn?: Partial<Column<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>[]
groupedFlatRows: Row<D>[]
groupedRows: Row<D>[]
groupedRowsById: Record<string, Row<D>>
headerGroups: HeaderGroup<D>[]
headers: ColumnInstance<D>[]
initialState?: Partial<TableState<D>>
isAllRowsExpanded: boolean
isAllRowsSelected: boolean
nonGroupedFlatRows: Row<D>[]
nonGroupedRowsById: Record<string, Row<D>>
onlyGroupedFlatRows: Row<D>[]
onlyGroupedRowsById: Record<string, Row<D>>
plugins: PluginHook<D>[]
preExpandedRows: Row<D>[]
preFilteredFlatRows: Row<D>[]
preFilteredRows: Row<D>[]
preFilteredRowsById: Record<string, Row<D>>
preGroupedFlatRows: Row<D>[]
preGroupedRows: Row<D>[]
preGroupedRowsById: Record<string, Row<D>>
preSortedRows: Row<D>[]
rows: Row<D>[]
rowsById: Record<string, Row<D>>
selectedFlatRows: 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

  • getToggleAllPageRowsSelectedProps(props?: Partial<TableToggleAllRowsSelectedProps>): TableToggleAllRowsSelectedProps
  • Parameters

    • Optional props: Partial<TableToggleAllRowsSelectedProps>

    Returns TableToggleAllRowsSelectedProps

  • getToggleAllRowsSelectedProps(props?: Partial<TableToggleAllRowsSelectedProps>): TableToggleAllRowsSelectedProps
  • Parameters

    • Optional props: Partial<TableToggleAllRowsSelectedProps>

    Returns TableToggleAllRowsSelectedProps

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

    • Optional props: Partial<TableToggleHideAllColumnProps>

    Returns TableToggleHideAllColumnProps

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

    Returns void

  • setAllFilters(updater: Filters<D> | ((filters: Filters<D>) => Filters<D>)): void
  • Parameters

    • updater: Filters<D> | ((filters: Filters<D>) => Filters<D>)

    Returns void

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

    • columnId: IdType<D>
    • updater: any

    Returns void

  • setGroupingOptions(columnId: string, value: any): void
  • Parameters

    • columnId: string
    • value: any

    Returns void

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

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

    Returns void

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

    • sortBy: SortingRule<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>

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

    • Optional value: boolean

    Returns void

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

    • Optional value: boolean

    Returns void

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

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

    Returns void

  • 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

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

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

    Returns void

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

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

    Returns void

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

    • columnId: IdType<D>
    • Optional descending: boolean
    • Optional isMulti: 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