Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • ACellTableSection<RenderColumn>
    • EngineRanking

Implements

  • ITableSection
  • IEventHandler

Index

Constructors

Properties

ranking: Ranking
EVENT_HIGHLIGHT_CHANGED: "highlightChanged" = RankingEvents.EVENT_HIGHLIGHT_CHANGED
EVENT_RECREATE: "recreate" = RankingEvents.EVENT_RECREATE
EVENT_UPDATE_DATA: "updateData" = RankingEvents.EVENT_UPDATE_DATA
EVENT_WIDTH_CHANGED: "widthChanged" = RankingEvents.EVENT_WIDTH_CHANGED

Accessors

  • get context(): ICellRenderContext<default>
  • get id(): string

Methods

  • createCell(_document: Document, index: number, column: default): HTMLElement | IAsyncUpdate<HTMLElement>
  • Parameters

    • _document: Document
    • index: number
    • column: default

    Returns HTMLElement | IAsyncUpdate<HTMLElement>

  • createHeader(_document: Document, column: default): HTMLElement | IAsyncUpdate<HTMLElement>
  • Parameters

    • _document: Document
    • column: default

    Returns HTMLElement | IAsyncUpdate<HTMLElement>

  • createRow(node: HTMLElement, rowIndex: number): void
  • destroy(): void
  • enableHighlightListening(enable: boolean): void
  • findNearest(dataIndices: number[]): number
  • forEachRow(callback: (row: HTMLElement, rowIndex: number) => void, inplace?: boolean): void
  • Parameters

    • callback: (row: HTMLElement, rowIndex: number) => void
        • (row: HTMLElement, rowIndex: number): void
        • Parameters

          • row: HTMLElement
          • rowIndex: number

          Returns void

    • inplace: boolean = false

    Returns void

  • getHighlight(): number
  • on(type: "widthChanged", listener: () => void): EngineRanking
  • on(type: "updateData", listener: () => void): EngineRanking
  • on(type: "recreate", listener: () => void): EngineRanking
  • on(type: "highlightChanged", listener: (dataIndex: number) => void): EngineRanking
  • on(type: string | string[], listener: IEventListener): EngineRanking
  • Parameters

    • type: "widthChanged"
    • listener: () => void
        • (): void
        • emitted when the width of the ranking changed

          asmemberof

          EngineRanking

          Returns void

    Returns EngineRanking

  • Parameters

    • type: "updateData"
    • listener: () => void
        • (): void
        • emitted when the data of the ranking needs to be updated

          asmemberof

          EngineRanking

          Returns void

    Returns EngineRanking

  • Parameters

    • type: "recreate"
    • listener: () => void
        • (): void
        • emitted when the table has be recreated

          asmemberof

          EngineRanking

          Returns void

    Returns EngineRanking

  • Parameters

    • type: "highlightChanged"
    • listener: (dataIndex: number) => void
        • (dataIndex: number): void
        • emitted when the highlight changes

          asmemberof

          EngineRanking

          Parameters

          • dataIndex: number

            the highlighted data index or -1 for none

          Returns void

    Returns EngineRanking

  • Parameters

    • type: string | string[]
    • listener: IEventListener

    Returns EngineRanking

  • onVisibilityChanged(visible: boolean): void
  • scrollIntoView(dataIndex: number): boolean
  • setHighlight(dataIndex: number): boolean
  • updateAll(): void
  • updateBody(): void
  • updateCanvasCell(canvas: HTMLCanvasElement, node: HTMLElement, index: number, column: default, x: number): void
  • Parameters

    • canvas: HTMLCanvasElement
    • node: HTMLElement
    • index: number
    • column: default
    • x: number

    Returns void

  • updateCell(node: HTMLElement, index: number, column: default): HTMLElement | IAsyncUpdate<HTMLElement>
  • Parameters

    • node: HTMLElement
    • index: number
    • column: default

    Returns HTMLElement | IAsyncUpdate<HTMLElement>

  • updateColumnWidths(): void
  • updateHeader(node: HTMLElement, column: default): HTMLElement | IAsyncUpdate<HTMLElement>
  • Parameters

    • node: HTMLElement
    • column: default

    Returns HTMLElement | IAsyncUpdate<HTMLElement>

  • updateHeaderOf(col: Column): false | default
  • updateHeaders(): void
  • updateRow(node: HTMLElement, rowIndex: number, hoverLod?: "high" | "low"): void
  • Parameters

    • node: HTMLElement
    • rowIndex: number
    • Optional hoverLod: "high" | "low"

    Returns void

  • updateSelection(selectedDataIndices: { has: any }): void
  • updateShifts(top: number, left: number): void