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-server. Version: 2.0.0.

Related workbook object-model type, returned through the server control. Obtain it from its owning workbook or collection; it is not a required browser-package import.

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 { ServerSheetControl } from '@txtextcontrol/tx-sheet-control-server';

function inspectCellRenderContextSheetId(
    cellRenderContext: Parameters<Parameters<ServerSheetControl['workbook']['cellTypes']['register']>[1]['render']>[0],
) {
    const value = cellRenderContext['sheetId'];
    console.log('CellRenderContext.sheetId', value);
}

See Also