TX Sheet Control

CellRenderContext Interface

Interface

Platform-independent cell rendering context; dimensions are unscaled CSS pixels and font size is in points.

Package: @txtextcontrol/tx-sheet-control. Version: 2.0.0.

Type-only declaration; it is not a JavaScript runtime constructor.

Members

Properties

PropertyDescription
addressThe address value of CellRenderContext.
displayTextThe displayText value of CellRenderContext.
heightThe height value of CellRenderContext.
initialInputThe initialInput value of CellRenderContext.
optionsThe options value of CellRenderContext.
sheetIdThe sheetId value of CellRenderContext.
styleThe style value of CellRenderContext.
valueThe value value of CellRenderContext.
widthThe width value of CellRenderContext.

Examples

Pass the CellRenderContext value obtained from its owning control, collection, callback or operation. The function reads that value without constructing a replacement document object.

import type { CellRenderContext } from '@txtextcontrol/tx-sheet-control';

function inspectCellRenderContextSheetId(cellRenderContext: CellRenderContext) {
    const value = cellRenderContext['sheetId'];
    console.log('CellRenderContext.sheetId', value);
}

See Also