Class EngineRanking

Hierarchy

Implements

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 id(): string
  • Returns string

Methods

  • create a new cell node fo the given row index and column

    Parameters

    • _document: Document
    • index: number

      the current row index

    • column: RenderColumn

      the current column

    Returns HTMLElement | IAsyncUpdate<HTMLElement>

    the node representing the cell

  • create a new header node for the given column

    Parameters

    • _document: Document
    • column: RenderColumn

      the column to create the header for

    Returns HTMLElement | IAsyncUpdate<HTMLElement>

    the node representing the header

  • Parameters

    • node: HTMLElement
    • rowIndex: number

    Returns void

  • Returns void

  • Parameters

    • enable: boolean

    Returns void

  • Parameters

    • dataIndices: number[]

    Returns number

  • utility to execute a function for each visible row

    Parameters

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

      callback to execute

    • inplace: boolean = false

    Returns void

  • Parameters

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

          Returns void

          EngineRanking

    Returns this

  • Parameters

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

          Returns void

          EngineRanking

    Returns this

  • Parameters

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

          Returns void

          EngineRanking

    Returns this

  • Parameters

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

          Parameters

          • dataIndex: number

            the highlighted data index or -1 for none

          Returns void

          EngineRanking

    Returns this

  • Parameters

    Returns this

  • hook when the visibility changes

    Parameters

    • visible: boolean

    Returns void

  • Parameters

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

    Returns void

  • updates the given cell node with the given row index and column

    Parameters

    • node: HTMLElement

      node to update

    • index: number

      row index to use

    • column: RenderColumn

      column to use

    Returns HTMLElement | IAsyncUpdate<HTMLElement>

    an optional new replacement node for the header

  • trigger an update all all column widths

    Returns void

  • updates the given header node with the given column

    Parameters

    • node: HTMLElement

      node to update

    • column: RenderColumn

      the column to represents

    Returns HTMLElement | IAsyncUpdate<HTMLElement>

    an optional new replacement node for the header

  • triggers updating the header

    Returns void

  • Parameters

    • node: HTMLElement
    • rowIndex: number
    • OptionalhoverLod: "high" | "low"

    Returns void

  • Parameters

    • selectedDataIndices: { has(i: number): boolean }

    Returns void

  • Parameters

    • top: number
    • left: number

    Returns void