Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface UseLineUpLiteOptions<D>

Type Parameters

Hierarchy

Index

Properties

aggregations?: Record<string, AggregatorFn<D>>
autoResetExpanded?: boolean
autoResetFilters?: boolean
autoResetGroupBy?: boolean
autoResetHiddenColumns?: boolean
autoResetSelectedRows?: boolean
autoResetSortBy?: boolean
columns: LineUpLiteColumn<D>[]
data: readonly D[]
defaultCanFilter?: boolean
defaultCanGroupBy?: boolean
defaultCanSort?: boolean
defaultColumn?: Partial<LineUpLiteColumn<D>>
disableFilters?: boolean
disableGroupBy?: boolean
disableMultiSort?: boolean
disableSortBy?: boolean
disableSortRemove?: boolean
disabledMultiRemove?: boolean
expandColumnWidth?: number

width of the expand column

default

20

expandSubRows?: boolean
features: readonly (PluginHook<D> | PluginHook<D>[])[]
filterTypes?: FilterTypes<D>
i18n?: Partial<{ collapseAllGroups: string; collapseGroup: string; expandAllGroups: string; expandGroup: string }> & Partial<{ selectAll: string; selectGroup: string; selectRow: string; unselectAll: string; unselectGroup: string; unselectRow: string }>

i18n customizations

icons?: { expandGroup?: ComponentType<{}> }

icon to use for the expand icon

default

'▸'

Type declaration

  • Optional expandGroup?: ComponentType<{}>
initialState?: Partial<TableState<D>>
manualExpandedKey?: IdType<D>
manualFilters?: boolean
manualGroupBy?: boolean
manualRowSelectedKey?: IdType<D>
manualSortBy?: boolean
maxMultiSortColCount?: number
paginateExpandedRows?: boolean
rankColumnWidth?: number

width of the rank column

default

40

selectCheckboxComponent?: ComponentType<TableToggleAllRowsSelectedProps>
selectColumnWidth?: number

width of the select column

default

20

selectSubRows?: boolean
sortTypes?: Record<string, SortByFn<D>>

Methods

  • 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[]

  • groupByFn(rows: Row<D>[], columnId: IdType<D>): Record<string, Row<D>[]>
  • Parameters

    • rows: Row<D>[]
    • columnId: IdType<D>

    Returns Record<string, Row<D>[]>

  • isMultiSortEvent(e: MouseEvent<Element, MouseEvent>): boolean
  • Parameters

    • e: MouseEvent<Element, MouseEvent>

    Returns boolean

  • orderByFn(rows: Row<D>[], sortFns: OrderByFn<D>[], directions: boolean[]): Row<D>[]
  • Parameters

    • rows: Row<D>[]
    • sortFns: OrderByFn<D>[]
    • directions: boolean[]

    Returns Row<D>[]

  • 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>

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

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

    Returns TableState<D>

Generated using TypeDoc