Class StarRatingCellRenderer<T>

Works with AreaModelObjectArray only

Type Parameters

  • T

Hierarchy

  • StarRatingCellRenderer

Implements

Constructors

Properties

Methods

Constructors

Properties

ariaLabel: ((stars) => string) = ...

Type declaration

    • (stars): string
    • Text for screen readers (the stars are an image). Default: "4 stars".

      Parameters

      • stars: number

      Returns string

      Since

      1.1.91

property: string

Methods

  • Fills the (empty) cell element.

    Parameters

    • cellDiv: HTMLDivElement

      the cell element, already positioned and sized

    • rowIndex: number

      row in the area (as displayed)

    • columnIndex: number

      column index (west + center + east)

    • areaIdent: AreaIdent

      "header", "body" or "footer"

    • areaModel: AreaModelObjectArray<T>

      the model of this area (e.g. for getRowByIndex(rowIndex))

    • _cellValue: any

      the value of the cell (areaModel.getValueAt(rowIndex, columnIndex))

    • domService: DomServiceIf

      create and change elements through it (works with Angular's Renderer2, too)

    Returns undefined | Function

    optionally a cleanup function, called before the cell is drawn again