Home > @activeviam/activeui-sdk > CellRendererImplementationProperties
CellRendererImplementationProperties interface
Change the rendering of cells in a table.
Signature:
export interface CellRendererImplementationProperties
Properties
Property | Type | Description |
---|---|---|
getCellStyle | (rowIndex: number, columnProps: TabularColumnProps) => {} | Assign a CSS style to the cell. This style will be merged with the default style. |
isAvailable | (a: { colKey: string; columnProps: TabularColumnProps; rowIdx: number; }) => boolean | Decide if the other methods of the plugin should be called (applies to getCellStyle AND renderCell). Returns true by default. |
renderCell | (a: { colKey: string; columnProps: TabularColumnProps; onCellRef: (a: HTMLElement | null | undefined) => {}; rowIdx: number; }) => React.ReactElement<any> | Render the content of the cell. |