Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface ISetColumn

Hierarchy

Implemented by

Index

Properties

categories: ICategory[]
dataLength: number
desc: Readonly<IColumnDesc>
labels: string[]
parent: Readonly<IColumnParent> = null

parent column of this column, set when added to a ranking or combined column

Accessors

  • get description(): string
  • get fixed(): boolean
  • get fqid(): string
  • returns the fully qualified id i.e. path the parent

    Returns string

  • get fqpath(): string
  • get frozen(): boolean
  • get id(): string
  • get label(): string

Methods

  • assignNewId(idGenerator: () => string): void
  • clearFilter(): boolean
  • createEventList(): string[]
  • detach(): void
  • dump(toDescRef: (desc: any) => any): any
  • dumps this column to JSON compatible format

    Parameters

    • toDescRef: (desc: any) => any

      helper mapping function

        • (desc: any): any
        • Parameters

          • desc: any

          Returns any

    Returns any

    dump of this column

  • filter(row: IDataRow, _valueCache?: any): boolean
  • fire(type: string | string[], ...args: any[]): void
  • flatten(r: IFlatColumn[], offset: number, _levelsToGo?: number, _padding?: number): number
  • visitor pattern for flattening the columns

    Parameters

    • r: IFlatColumn[]

      the result array

    • offset: number

      left offset

    • _levelsToGo: number = 0

      how many levels down

    • _padding: number = 0

      padding between columns

    Returns number

    the used width by this column

  • forward(from: IEventHandler, ...types: string[]): void
  • forwards one or more events from a given dispatcher to the current one i.e. when one of the given events is fired in 'from' it will be forwarded to all my listeners

    Parameters

    • from: IEventHandler

      the event dispatcher to forward from

    • Rest ...types: string[]

      the event types to forward

    Returns void

  • getExportValue(row: IDataRow, format: "text" | "json"): any
  • getGroupRenderer(): string
  • getRenderer(): string
  • getSummaryRenderer(): string
  • getVisible(): boolean
  • getWidth(): number
  • groupByMe(): boolean
  • groupSortByMe(ascending?: boolean, priority?: number): boolean
  • hide(): void
  • insertAfterMe(col: Column): boolean
  • insertBeforeMe(col: Column): boolean
  • isFiltered(): boolean
  • isGroupSortedByMe(): { asc: "asc" | "desc"; priority: number }
  • isGroupedBy(): number
  • isSortedByMe(): { asc: "asc" | "desc"; priority: number }
  • isVisible(): boolean
  • listenersChanged(_type: string, _active: boolean): void
  • markDirty(type?: "header" | "values" | "all"): void
  • marks the header, values, or both as dirty such that the values are reevaluated

    Parameters

    • type: "header" | "values" | "all" = 'all'

      specify in more detail what is dirty, by default whole column

    Returns void

  • on(type: "widthChanged", listener: (previous: number, current: number) => void): ISetColumn
  • on(type: "labelChanged", listener: (previous: string, current: string) => void): ISetColumn
  • on(type: "metaDataChanged", listener: (previous: IColumnMetaData, current: IColumnMetaData) => void): ISetColumn
  • on(type: "dirty", listener: () => void): ISetColumn
  • on(type: "dirtyHeader", listener: () => void): ISetColumn
  • on(type: "dirtyValues", listener: () => void): ISetColumn
  • on(type: "dirtyCaches", listener: () => void): ISetColumn
  • on(type: "rendererTypeChanged", listener: (previous: string, current: string) => void): ISetColumn
  • on(type: "groupRendererChanged", listener: (previous: string, current: string) => void): ISetColumn
  • on(type: "summaryRendererChanged", listener: (previous: string, current: string) => void): ISetColumn
  • on(type: "visibilityChanged", listener: (previous: boolean, current: boolean) => void): ISetColumn
  • on(type: string | string[], listener: IEventListener): ISetColumn
  • removeMe(): boolean
  • setGroupRenderer(renderer: string): void
  • setRenderer(renderer: string): void
  • setSummaryRenderer(renderer: string): void
  • setVisible(value: boolean): void
  • setWidth(value: number): void
  • setWidthImpl(value: number): void
  • show(): void
  • sortByMe(ascending?: boolean, priority?: number): boolean
  • toggleMyGroupSorting(): boolean
  • toggleMySorting(): boolean
  • unforward(from: IEventHandler, ...types: string[]): void