CellRenderContext 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
| Property | Description |
|---|---|
| address | The address value of CellRenderContext. |
| displayText | The displayText value of CellRenderContext. |
| height | The height value of CellRenderContext. |
| initialInput | The initialInput value of CellRenderContext. |
| options | The options value of CellRenderContext. |
| sheetId | The sheetId value of CellRenderContext. |
| style | The style value of CellRenderContext. |
| value | The value value of CellRenderContext. |
| width | The 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);
}