Columns.render pass DOM element instead of string.

Columns.render pass DOM element instead of string.

bobmattbobmatt Posts: 1Questions: 1Answers: 0

Any way to pass a DOM element instead of a string in the columns.render parameter when using the function variant?
If not, any suggestions on how to implement complex buttons in cells that can toggle their icons or show modals?
I would prefer not having to use the onlick attribute on the button and defining the behaviour in a string.

I tried creating DOM elements and returning the outer html. but the onClick attribute is not kept when converting to string.

This question has an accepted answers - jump to answer

Answers

This discussion has been closed.