Hi team,
I tried to use a renderer to a cell using custom component. I used the addClassNameWhenNeeded
hook that you have before.
When I implement it, it seems like it doesn’t apply the classname to the fixed column.
import Handsontable from 'handsontable';
export type RendererProps = {
TD: HTMLTableCellElement;
value: any;
cellProperties: Handsontable.CellProperties;
};
export const addClassWhenNeeded = (props: RendererProps) => {
const className = props.cellProperties.className;
if (className !== void 0) {
Handsontable.dom.addClass(props.TD, className);
}
};