5.20193.646
CellFactory Wijmo API Class

CellFactory Class

Creates HTML elements that represent cells within a FlexGrid control.

Heirarchy

  • CellFactory

Methods

disposeCell

  • disposeCell(cell: HTMLElement): void
  • Disposes of a cell element and releases all resources associated with it.

    Parameters

    • cell: HTMLElement

      The element that represents the cell.

    Returns void

getEditorValue

  • Gets the value of the editor currently being used.

    Parameters

    Returns any

updateCell

  • updateCell(p: GridPanel, r: number, c: number, cell: HTMLElement, rng?: CellRange, updateContent?: boolean): void
  • Creates or updates a cell in the grid.

    Parameters

    • p: GridPanel

      The GridPanel that contains the cell.

    • r: number

      The index of the row that contains the cell.

    • c: number

      The index of the column that contains the cell.

    • cell: HTMLElement

      The element that represents the cell.

    • Optional rng: CellRange

      The CellRange object that contains the cell's merged range, or null if the cell is not merged.

    • Optional updateContent: boolean

      Whether to update the cell's content as well as its position and style.

    Returns void