Render a previously rendered cell #10871
Replies: 3 comments 2 replies
-
The use of the custom cell renderer is correct. You may also need to call When it comes to updates on an existing cell renderer, you may also consider using ps. I saw that you were working on a restaurant administration project. Would Handsontable be a part of it? I would love to hear more about it. Could you message me at [email protected]? |
Beta Was this translation helpful? Give feedback.
-
Hi @AMBudnik Thank you very much for your quick reply. I just solved the problem by obtaining the render of the cell that was already rendered and passing it again to a new Render instance. Let me show you:
Regarding restaurant management, it was an old learning project. |
Beta Was this translation helpful? Give feedback.
-
One more question, sorry for having the topic open, is it possible to format a numerical type cell with number format codes? For example: numFmt |
Beta Was this translation helpful? Give feedback.
-
(Angular) Hello, I'm new here and I love the library. I would like to know how I can update the rendering of a cell that was previously rendered. in my component I have a function to Import an excel from exceljs and I map the data so that Handsontable can do the rendering, this works correctly
const cellRender = function (instance: any, td: any, row: any, col: any, prop: any, value: any, cellProperties: any) { if (cell.cellStyles.fill?.bgColor?.argb !== undefined) { td.style.background =
#${cell.cellStyles.fill?.bgColor?.argb.substring(2)}`;}
SetCustomRenderer
`async setCustomRenderer(row: number, col: number, customRenderer: any, hot: Handsontable): Promise {
return new Promise((resolve, reject) => {
try {
hot.setCellMeta(row, col, 'renderer', customRenderer);
resolve();
} catch (error) {
reject(error);
}
})
Beta Was this translation helpful? Give feedback.
All reactions