Vue: custom formatting of display columns #4640
-
Hello everyone, columnHelper.display({
id: 'actions',
cell: (cellProps) => `<span>${cellProps.row.getValue('id')}</span>`,
}) But unfortunately the html is not rendered, but is displayed as a plain string: <td>
"<span>2</span>"
</td> How can I get the html to render, without using tsx syntax like in all the examples in the docs? |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Same question. How do you create dynamic cells? Documentation and examples for Vue is quite lacking, and it seems like a fundamental feature. |
Beta Was this translation helpful? Give feedback.
-
In the meantime I found a solution:
|
Beta Was this translation helpful? Give feedback.
-
Yea but using h renderer is obnoxious ... You mean I have to create a component each time I want a customized cell ? eh??! |
Beta Was this translation helpful? Give feedback.
In the meantime I found a solution: