Options
All
  • Public
  • Public/Protected
  • All
Menu

@lineup-lite/hooks

Index

References

Namespaces

Interfaces

Type Aliases

Variables

Functions

References

Renames and re-exports UseGroupingOptionGroupingFunction
Renames and re-exports UseGroupingOptionsColumnOptions

Type Aliases

AnyObject: object
ArrayAxisRendererOptions: ArrayAxisProps | CommonProps
DateGroupByGranularity: "century" | "decade" | "year" | "quarter" | "month" | "week" | "day_of_week" | "day_of_month" | "day_of_year" | "hour" | "minute" | "second"

Type Parameters

GroupingOptions<D>: { id: IdType<D>; value: GroupingOptionsValue }[]

Type Parameters

GroupingOptionsCellProps<D>: CellProps<D> & { column: UseGroupingOptionsColumnProps }

Type Parameters

GroupingOptionsProps<D>: HeaderProps<D> & { column: UseGroupingOptionsColumnProps }

Type Parameters

GroupingOptionsValue: any
LineUpLiteColumn<D>: Column<D> & UseFiltersColumnOptions<D> & UseGroupByColumnOptions<D> & UseSortByColumnOptions<D> & UseStatsColumnOptions<D> & UseResizeColumnsColumnOptions<D> & UseGroupingOptionsColumnOptions<D> & { canHide?: boolean; className?: string; isSupport?: boolean; tooltip?: string }

a lineup lite column description

Type Parameters

NumberArrayWithStats: number[] & { _stats?: INumberStats }
RowCompareFunction<O>: ((a: Row<UnknownObject>, b: Row<UnknownObject>, columnId: string, options?: O) => number)

Type Parameters

Type declaration

SortingOptions<D>: { id: IdType<D>; value: SortingOptionsValue }[]

Type Parameters

SortingOptionsCellProps<D>: CellProps<D> & { column: UseSortingOptionsColumnProps }

Type Parameters

SortingOptionsProps<D>: HeaderProps<D> & { column: UseSortingOptionsColumnProps }

Type Parameters

SortingOptionsValue: any
StatsAggregateArray<T>: T[] & { _aggregate?: any }

Type Parameters

  • T

StatsCellProps<D>: CellProps<D> & { column: UseStatsColumnProps; i18n?: Record<string, string> }

Type Parameters

StatsProps<D>: HeaderProps<D> & { column: UseStatsColumnProps; i18n?: Record<string, string> }

Type Parameters

StatsValue: any
UnknownObject: {}
lineup-lite/hooks

https://github.com/sgratzl/lineup-lite

Copyright (c) 2021 Samuel Gratzl sam@sgratzl.com

Type declaration

  • [key: string]: unknown

Variables

IndeterminateCheckbox: ForwardRefExoticComponent<HTMLAttributes<HTMLInputElement> & { indeterminate?: boolean } & RefAttributes<HTMLInputElement>> = ...
USE_EXPAND_COLUMN_I18N_EN: { collapseAllGroups: string; collapseGroup: string; expandAllGroups: string; expandGroup: string } = ...

Type declaration

  • collapseAllGroups: string
  • collapseGroup: string
  • expandAllGroups: string
  • expandGroup: string
USE_ROW_SELECT_COLUMN_I18N_EN: { selectAll: string; selectGroup: string; selectRow: string; unselectAll: string; unselectGroup: string; unselectRow: string } = ...

Type declaration

  • selectAll: string
  • selectGroup: string
  • selectRow: string
  • unselectAll: string
  • unselectGroup: string
  • unselectRow: string

Functions

  • ArrayAxisRenderer<D, P>(props: P): JSX.Element
  • Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, any>; column: ColumnInstance<D>; row: Row<D>; value: any } & { column: UseStatsColumnProps; i18n?: Record<string, string> }

    Parameters

    • props: P

    Returns JSX.Element

  • Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, any>; column: ColumnInstance<D>; row: Row<D>; value: any } & { column: UseStatsColumnProps; i18n?: Record<string, string> }

    Parameters

    Returns Renderer<P>

  • BarRenderer<D, P>(props: P): JSX.Element
  • Cell renderer for a number to be rendered as a a bar

    Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, number>; column: ColumnInstance<D>; row: Row<D>; value: number }

    Parameters

    • props: P

    Returns JSX.Element

  • factory for rendering numbers as a bar

    Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, number>; column: ColumnInstance<D>; row: Row<D>; value: number }

    Parameters

    Returns Renderer<P>

  • BoxPlotArrayRenderer<P>(props: P): JSX.Element
  • Type Parameters

    • P extends StatsPropsLike<number>

    Parameters

    • props: P

    Returns JSX.Element

  • Type Parameters

    • P extends StatsPropsLike<number>

    Parameters

    Returns Renderer<P>

  • BoxPlotRenderer<P>(props: P): JSX.Element
  • Type Parameters

    • P extends StatsPropsLike<number>

    Parameters

    • props: P

    Returns JSX.Element

  • Type Parameters

    • P extends StatsPropsLike<number>

    Parameters

    Returns Renderer<P>

  • CategoricalHistogramRenderer<P>(props: P): JSX.Element
  • Type Parameters

    • P extends StatsPropsLike<string>

    Parameters

    • props: P

    Returns JSX.Element

  • Type Parameters

    • P extends StatsPropsLike<string>

    Parameters

    Returns Renderer<P>

  • CategoricalRenderer<D, P>(props: P): JSX.Element
  • Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, string>; column: ColumnInstance<D>; row: Row<D>; value: string }

    Parameters

    • props: P

    Returns JSX.Element

  • Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, string>; column: ColumnInstance<D>; row: Row<D>; value: string }

    Parameters

    Returns Renderer<P>

  • CategoricalSetHistogramRenderer<P>(props: P): JSX.Element
  • Type Parameters

    • P extends StatsPropsLike<string>

    Parameters

    • props: P

    Returns JSX.Element

  • Type Parameters

    • P extends StatsPropsLike<string>

    Parameters

    Returns Renderer<P>

  • CategoricalSetRenderer<D, P>(props: P): JSX.Element
  • Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, CategoricalSetValue>; column: ColumnInstance<D>; row: Row<D>; value: CategoricalSetValue }

    Parameters

    • props: P

    Returns JSX.Element

  • Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, CategoricalSetValue>; column: ColumnInstance<D>; row: Row<D>; value: CategoricalSetValue }

    Parameters

    Returns Renderer<P>

  • ColorRenderer<D, P>(props: P): JSX.Element
  • Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, number>; column: ColumnInstance<D>; row: Row<D>; value: number }

    Parameters

    • props: P

    Returns JSX.Element

  • Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, number>; column: ColumnInstance<D>; row: Row<D>; value: number }

    Parameters

    Returns Renderer<P>

  • DateHistogramRenderer<P>(props: P): JSX.Element
  • Type Parameters

    • P extends StatsPropsLike<null | Date>

    Parameters

    • props: P

    Returns JSX.Element

  • Type Parameters

    • P extends StatsPropsLike<null | Date>

    Parameters

    Returns Renderer<P>

  • DateRenderer<D, P>(props: P): JSX.Element
  • Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, Date>; column: ColumnInstance<D>; row: Row<D>; value: Date }

    Parameters

    • props: P

    Returns JSX.Element

  • Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, Date>; column: ColumnInstance<D>; row: Row<D>; value: Date }

    Parameters

    Returns Renderer<P>

  • DivergingBarRenderer<D, P>(props: P): JSX.Element
  • Cell renderer for a number to be rendered as a a bar

    Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, number>; column: ColumnInstance<D>; row: Row<D>; value: number }

    Parameters

    • props: P

    Returns JSX.Element

  • factory for rendering numbers as a bar

    Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, number>; column: ColumnInstance<D>; row: Row<D>; value: number }

    Parameters

    Returns Renderer<P>

  • GroupValueRenderer<D, P>(props: P): JSX.Element
  • Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, unknown>; column: ColumnInstance<D>; row: Row<D>; value: unknown }

    Parameters

    • props: P

    Returns JSX.Element

  • HeatMap1DRenderer<D, P>(props: P): JSX.Element
  • Cell renderer for a number to be rendered as a a HeatMap1D

    Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, number[]>; column: ColumnInstance<D>; row: Row<D>; value: number[] }

    Parameters

    • props: P

    Returns JSX.Element

  • factory for rendering numbers as a HeatMap1D

    Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, number[]>; column: ColumnInstance<D>; row: Row<D>; value: number[] }

    Parameters

    Returns Renderer<P>

  • LineChartRenderer<D, P>(props: P): JSX.Element
  • Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, (undefined | null | number)[]>; column: ColumnInstance<D>; row: Row<D>; value: (undefined | null | number)[] }

    Parameters

    • props: P

    Returns JSX.Element

  • Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, (undefined | null | number)[]>; column: ColumnInstance<D>; row: Row<D>; value: (undefined | null | number)[] }

    Parameters

    Returns Renderer<P>

  • MultiLineChartRenderer<D, P>(props: P): JSX.Element
  • Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, (undefined | null | number)[][]>; column: ColumnInstance<D>; row: Row<D>; value: (undefined | null | number)[][] }

    Parameters

    • props: P

    Returns JSX.Element

  • Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, (undefined | null | number)[][]>; column: ColumnInstance<D>; row: Row<D>; value: (undefined | null | number)[][] }

    Parameters

    Returns Renderer<P>

  • NumberHistogramRenderer<P>(props: P): JSX.Element
  • Type Parameters

    • P extends StatsPropsLike<number>

    Parameters

    • props: P

    Returns JSX.Element

  • Type Parameters

    • P extends StatsPropsLike<number>

    Parameters

    Returns Renderer<P>

  • ProportionalSymbolRenderer<D, P>(props: P): JSX.Element
  • Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, number>; column: ColumnInstance<D>; row: Row<D>; value: number }

    Parameters

    • props: P

    Returns JSX.Element

  • Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, number>; column: ColumnInstance<D>; row: Row<D>; value: number }

    Parameters

    Returns Renderer<P>

  • StackedBarRenderer<D, P>(props: P): JSX.Element
  • Cell renderer for a number to be rendered as a a bar

    Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, StackedValue>; column: ColumnInstance<D>; row: Row<D>; value: StackedValue }

    Parameters

    • props: P

    Returns JSX.Element

  • factory for rendering numbers as a stacked bar

    Type Parameters

    • D extends UnknownObject

    • P extends TableInstance<D, P> & { cell: Cell<D, StackedValue>; column: ColumnInstance<D>; row: Row<D>; value: StackedValue }

    Parameters

    Returns Renderer<P>

  • TextRenderer<D, P>(props: P): JSX.Element
  • Type Parameters

    • D extends object

    • P extends TableInstance<D, P> & { cell: Cell<D, string>; column: ColumnInstance<D>; row: Row<D>; value: string }

    Parameters

    • props: P

    Returns JSX.Element

  • Type Parameters

    • D extends object

    • P extends TableInstance<D, P> & { cell: Cell<D, string>; column: ColumnInstance<D>; row: Row<D>; value: string }

    Parameters

    Returns Renderer<P>

  • TextSummaryRenderer<P>(props: P): JSX.Element
  • Type Parameters

    • P extends StatsPropsLike<string>

    Parameters

    • props: P

    Returns JSX.Element

  • Type Parameters

    • P extends StatsPropsLike<string>

    Parameters

    Returns Renderer<P>

  • defines a categorical column

    Type Parameters

    • D extends object = UnknownObject

    • C extends ColumnInterface<D> & ColumnGroupInterface<D> & { Header: string } & { accessor?: Accessor<D> } | ColumnInterface<D> & ColumnGroupInterface<D> & { id: IdType<D> } & { Header: Renderer<HeaderProps<D>> } & { accessor?: Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { Header: string } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { id: IdType<D> } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { accessor: keyof D extends never ? IdType<D> : never } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & { accessor: keyof D } & ColumnInterfaceBasedOnValue<D, D[keyof D]> = Column<D>

    Parameters

    • col: keyof D | C

      property key or partial column Header and accessor

    • Optional options: CategoricalStatsOptions

      additional options for statistics

    Returns LineUpLiteColumn<D>

  • defines a categorical set column

    Type Parameters

    • D extends object = UnknownObject

    • C extends ColumnInterface<D> & ColumnGroupInterface<D> & { Header: string } & { accessor?: Accessor<D> } | ColumnInterface<D> & ColumnGroupInterface<D> & { id: IdType<D> } & { Header: Renderer<HeaderProps<D>> } & { accessor?: Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { Header: string } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { id: IdType<D> } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { accessor: keyof D extends never ? IdType<D> : never } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & { accessor: keyof D } & ColumnInterfaceBasedOnValue<D, D[keyof D]> = Column<D>

    Parameters

    • col: keyof D | C

      property key or partial column Header and accessor

    • Optional options: CategoricalStatsOptions

      additional options for statistics

    Returns LineUpLiteColumn<D>

  • asColumn<D, C>(col: keyof D | C): C
  • Type Parameters

    • D extends object = UnknownObject

    • C extends ColumnInterface<D> & ColumnGroupInterface<D> & { Header: string } & { accessor?: Accessor<D> } | ColumnInterface<D> & ColumnGroupInterface<D> & { id: IdType<D> } & { Header: Renderer<HeaderProps<D>> } & { accessor?: Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { Header: string } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { id: IdType<D> } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { accessor: keyof D extends never ? IdType<D> : never } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & { accessor: keyof D } & ColumnInterfaceBasedOnValue<D, D[keyof D]> = Column<D>

    Parameters

    • col: keyof D | C

    Returns C

  • defines a date column

    Type Parameters

    • D extends object = UnknownObject

    • C extends ColumnInterface<D> & ColumnGroupInterface<D> & { Header: string } & { accessor?: Accessor<D> } | ColumnInterface<D> & ColumnGroupInterface<D> & { id: IdType<D> } & { Header: Renderer<HeaderProps<D>> } & { accessor?: Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { Header: string } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { id: IdType<D> } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { accessor: keyof D extends never ? IdType<D> : never } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & { accessor: keyof D } & ColumnInterfaceBasedOnValue<D, D[keyof D]> = Column<D>

    Parameters

    • col: keyof D | C

      property key or partial column Header and accessor

    • Optional options: DateStatsOptions

      additional options for statistics

    Returns LineUpLiteColumn<D>

  • defines a diverging number column

    Type Parameters

    • D extends object = UnknownObject

    • C extends ColumnInterface<D> & ColumnGroupInterface<D> & { Header: string } & { accessor?: Accessor<D> } | ColumnInterface<D> & ColumnGroupInterface<D> & { id: IdType<D> } & { Header: Renderer<HeaderProps<D>> } & { accessor?: Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { Header: string } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { id: IdType<D> } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { accessor: keyof D extends never ? IdType<D> : never } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & { accessor: keyof D } & ColumnInterfaceBasedOnValue<D, D[keyof D]> = Column<D>

    Parameters

    • col: C | keyof D

      property key or partial column Header and accessor

    • options: NumberStatsOptions & { center?: number } = {}

      additional options for statistics

    Returns LineUpLiteColumn<D>

  • defines a number column that is rendered as boxplot

    Type Parameters

    • D extends object = UnknownObject

    • C extends ColumnInterface<D> & ColumnGroupInterface<D> & { Header: string } & { accessor?: Accessor<D> } | ColumnInterface<D> & ColumnGroupInterface<D> & { id: IdType<D> } & { Header: Renderer<HeaderProps<D>> } & { accessor?: Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { Header: string } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { id: IdType<D> } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { accessor: keyof D extends never ? IdType<D> : never } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & { accessor: keyof D } & ColumnInterfaceBasedOnValue<D, D[keyof D]> = Column<D>

    Parameters

    • col: keyof D | C

      property key or partial column Header and accessor

    • Optional options: NumberStatsOptions

      additional options for statistics

    Returns LineUpLiteColumn<D>

  • defines a number column

    Type Parameters

    • D extends object = UnknownObject

    • C extends ColumnInterface<D> & ColumnGroupInterface<D> & { Header: string } & { accessor?: Accessor<D> } | ColumnInterface<D> & ColumnGroupInterface<D> & { id: IdType<D> } & { Header: Renderer<HeaderProps<D>> } & { accessor?: Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { Header: string } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { id: IdType<D> } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { accessor: keyof D extends never ? IdType<D> : never } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & { accessor: keyof D } & ColumnInterfaceBasedOnValue<D, D[keyof D]> = Column<D>

    Parameters

    • col: keyof D | C

      property key or partial column Header and accessor

    • Optional options: NumberStatsOptions

      additional options for statistics

    Returns LineUpLiteColumn<D>

  • defines a number array column, each value is a number array

    Type Parameters

    • D extends object = UnknownObject

    • C extends ColumnInterface<D> & ColumnGroupInterface<D> & { Header: string } & { accessor?: Accessor<D> } | ColumnInterface<D> & ColumnGroupInterface<D> & { id: IdType<D> } & { Header: Renderer<HeaderProps<D>> } & { accessor?: Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { Header: string } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { id: IdType<D> } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { accessor: keyof D extends never ? IdType<D> : never } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & { accessor: keyof D } & ColumnInterfaceBasedOnValue<D, D[keyof D]> = Column<D>

    Parameters

    • col: keyof D | C

      property key or partial column Header and accessor

    • Optional options: NumberStatsOptions

      additional options for statistics

    Returns LineUpLiteColumn<D>

  • defines a number array column, each value is a number array shown as a line chart x = index, y=value

    Type Parameters

    • D extends object = UnknownObject

    • C extends ColumnInterface<D> & ColumnGroupInterface<D> & { Header: string } & { accessor?: Accessor<D> } | ColumnInterface<D> & ColumnGroupInterface<D> & { id: IdType<D> } & { Header: Renderer<HeaderProps<D>> } & { accessor?: Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { Header: string } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { id: IdType<D> } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { accessor: keyof D extends never ? IdType<D> : never } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & { accessor: keyof D } & ColumnInterfaceBasedOnValue<D, D[keyof D]> = Column<D>

    Parameters

    Returns LineUpLiteColumn<D>

  • asStackedNumberColumn<D, C>(col: string | C, stack: readonly { col: keyof D | Accessor<D>; color?: string; weight: number }[], options?: NumberStatsOptions & { colors?: any }): LineUpLiteColumn<D>
  • defines a number column

    Type Parameters

    • D extends object = UnknownObject

    • C extends ColumnInterface<D> & ColumnGroupInterface<D> & { Header: string } & { accessor?: Accessor<D> } | ColumnInterface<D> & ColumnGroupInterface<D> & { id: IdType<D> } & { Header: Renderer<HeaderProps<D>> } & { accessor?: Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { Header: string } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { id: IdType<D> } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { accessor: keyof D extends never ? IdType<D> : never } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & { accessor: keyof D } & ColumnInterfaceBasedOnValue<D, D[keyof D]> = Column<D>

    Parameters

    • col: string | C

      property key or partial column Header and accessor

    • stack: readonly { col: keyof D | Accessor<D>; color?: string; weight: number }[]
    • Optional options: NumberStatsOptions & { colors?: any }

      additional options for statistics

    Returns LineUpLiteColumn<D>

  • defines a text column

    Type Parameters

    • D extends object = UnknownObject

    • C extends ColumnInterface<D> & ColumnGroupInterface<D> & { Header: string } & { accessor?: Accessor<D> } | ColumnInterface<D> & ColumnGroupInterface<D> & { id: IdType<D> } & { Header: Renderer<HeaderProps<D>> } & { accessor?: Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { Header: string } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { id: IdType<D> } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & ColumnInterfaceBasedOnValue<D, any> & { accessor: keyof D extends never ? IdType<D> : never } & { accessor?: keyof D extends never ? IdType<D> | Accessor<D> : Accessor<D> } | ColumnInterface<D> & { accessor: keyof D } & ColumnInterfaceBasedOnValue<D, D[keyof D]> = Column<D>

    Parameters

    • col: keyof D | C

      property key or partial column Header and accessor

    • Optional options: TextStatsOptions

      additional options for statistics

    Returns LineUpLiteColumn<D>

  • categoricalFilter<D>(rows: readonly Row<D>[], ids: readonly IdType<D>[], filterValue: readonly string[]): Row<D>[]
  • filter function by a set of filter values

    Type Parameters

    Parameters

    • rows: readonly Row<D>[]
    • ids: readonly IdType<D>[]
    • filterValue: readonly string[]

    Returns Row<D>[]

  • categoricalGroupBy<D>(rows: readonly Row<D>[], column: ColumnInstance<D>): Record<string, Row<D>[]>
  • Type Parameters

    Parameters

    • rows: readonly Row<D>[]
    • column: ColumnInstance<D>

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

  • Parameters

    Returns number

  • generates a comparator that sorts by the given set of category order

    Parameters

    • Optional categories: readonly string[]

    Returns RowCompareFunction

  • categoricalSetFilter<D>(rows: readonly Row<D>[], ids: readonly IdType<D>[], filterValue: readonly FilterSetValue<string>[]): Row<D>[]
  • filter function by a set of filter values

    Type Parameters

    Parameters

    • rows: readonly Row<D>[]
    • ids: readonly IdType<D>[]
    • filterValue: readonly FilterSetValue<string>[]

    Returns Row<D>[]

  • categoricalSetGroupBy<D>(rows: readonly Row<D>[], column: ColumnInstance<D>): Record<string, Row<D>[]>
  • Type Parameters

    Parameters

    • rows: readonly Row<D>[]
    • column: ColumnInstance<D>

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

  • Parameters

    Returns number

  • generates a comparator that sorts by the given set of category order

    Parameters

    • categories: readonly string[]

    Returns RowCompareFunction

  • cleanCategories(categories: Set<undefined | null | string>): string[]
  • clears a set of categories of small invalid n/a values

    Parameters

    • categories: Set<undefined | null | string>

    Returns string[]

  • columnSpecificGroupByFn<D>(rows: Row<D>[], columnId: IdType<D>): Record<string, Row<D>[]>
  • helper function to defer the grouping logic to the column

    Type Parameters

    Parameters

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

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

  • computeStackedValue<D>(stack: readonly { col: Accessor<D> | keyof D; color?: string; weight: number }[], colors?: ((v: string) => string)): Accessor<D>
  • Type Parameters

    Parameters

    • stack: readonly { col: Accessor<D> | keyof D; color?: string; weight: number }[]
    • colors: ((v: string) => string) = ...
        • (v: string): string
        • Parameters

          • v: string

          Returns string

    Returns Accessor<D>

  • dateGroupBy<D>(rows: readonly Row<D>[], column: ColumnInstance<D>, options?: DateGroupByOptions): Record<string, Row<D>[]>
  • Type Parameters

    Parameters

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

  • Type Parameters

    Parameters

    Returns ((rows: readonly Row<D>[], column: ColumnInstance<D>, options?: DateGroupByOptions) => Record<string, Row<D>[]>)

      • (rows: readonly Row<D>[], column: ColumnInstance<D>, options?: DateGroupByOptions): Record<string, Row<D>[]>
      • Parameters

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

  • generator for computing date stats

    Parameters

    Returns ((arr: readonly (Date | null)[], preFilter?: IDateStats) => IDateStats)

  • guesses the column type based on the values

    Type Parameters

    Parameters

    • data: D[]
    • accessor: keyof D

    Returns DeriveColumnResult<D>

  • deriveColumns<D>(data: D[], columns?: (keyof D)[]): (Column<D> & Partial<LineUpLiteColumn<D>>)[]
  • derive the columns within the given data

    Type Parameters

    Parameters

    • data: D[]

      the data array

    • Optional columns: (keyof D)[]

      optional list of column names to generate

    Returns (Column<D> & Partial<LineUpLiteColumn<D>>)[]

  • isMissing(v: unknown): boolean
  • checks whether the given value is missing

    Parameters

    • v: unknown

      value to check

    Returns boolean

  • numberGroupBy<D>(rows: readonly Row<D>[], column: ColumnInstance<D>, options?: NumberGroupByOptions): Record<string, Row<D>[]>
  • Type Parameters

    Parameters

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

  • Type Parameters

    Parameters

    Returns ((rows: readonly Row<D>[], column: ColumnInstance<D>, options?: NumberGroupByOptions) => Record<string, Row<D>[]>)

      • (rows: readonly Row<D>[], column: ColumnInstance<D>, options?: NumberGroupByOptions): Record<string, Row<D>[]>
      • Parameters

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

  • rangeFilter<D, T>(rows: readonly Row<D>[], ids: readonly string[], filterValue: readonly [T, T]): Row<D>[]
  • a range numeric filter

    Type Parameters

    Parameters

    • rows: readonly Row<D>[]
    • ids: readonly string[]
    • filterValue: readonly [T, T]

    Returns Row<D>[]

  • sort helper to compare by a given column id

    Parameters

    Returns number

  • statsAggregate<T>(v: T[]): T[]
  • Type Parameters

    • T

    Parameters

    • v: T[]

    Returns T[]

  • statsAggregateArray<T>(v: T[]): T[]
  • Type Parameters

    • T

    Parameters

    • v: T[]

    Returns T[]

  • textGroupBy<D>(rows: readonly Row<D>[], column: ColumnInstance<D>, options?: TextGroupByOptions): Record<string, Row<D>[]>
  • Type Parameters

    Parameters

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

  • Type Parameters

    Parameters

    Returns ((rows: readonly Row<D>[], column: ColumnInstance<D>, options?: TextGroupByOptions) => Record<string, Row<D>[]>)

      • (rows: readonly Row<D>[], column: ColumnInstance<D>, options?: TextGroupByOptions): Record<string, Row<D>[]>
      • Parameters

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

  • Parameters

    Returns number

  • generator for computing text stats

    Parameters

    Returns ((arr: readonly string[], preFilter?: ITextStats) => ITextStats)

  • useGroupingOptions<D>(hooks: Hooks<D>): void
  • Type Parameters

    Parameters

    • hooks: Hooks<D>

    Returns void

  • useRowExpandColumn<D>(hooks: Hooks<D>): void
  • Type Parameters

    Parameters

    • hooks: Hooks<D>

    Returns void

  • useRowRankColumn<D>(hooks: Hooks<D>): void
  • Type Parameters

    Parameters

    • hooks: Hooks<D>

    Returns void

  • useRowSelectColumn<D>(hooks: Hooks<D>): void
  • Type Parameters

    Parameters

    • hooks: Hooks<D>

    Returns void

  • useSortingOptions<D>(hooks: Hooks<D>): void
  • Type Parameters

    Parameters

    • hooks: Hooks<D>

    Returns void

  • useStats<D>(hooks: Hooks<D>): void
  • Type Parameters

    Parameters

    • hooks: Hooks<D>

    Returns void

Generated using TypeDoc