Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ColumnBuilder<T>

Type parameters

Hierarchy

  • ColumnBuilder

Index

Constructors

  • new ColumnBuilder<T>(type: string, column: string): ColumnBuilder<T>

Properties

desc: T

Methods

  • converts the column type to be an array type, supports only base types: boolean, categorical, date, number, and string

    Parameters

    • Optional labels: number | string[]

      labels to use for each array item or the expected length of an value

    Returns ColumnBuilder<T>

  • build(_data: any[]): T
  • renderer(renderer?: string, groupRenderer?: string, summaryRenderer?: string): ColumnBuilder<T>
  • specify the renderer to used for this column

    Parameters

    • Optional renderer: string

      within a cell

    • Optional groupRenderer: string

      within an aggregated cell

    • Optional summaryRenderer: string

      within the summary in the header and side panel

    Returns ColumnBuilder<T>