Grid cell template as html object

Is there a way to queryselector an html element and return it as callback inside a cell template

template: (text, row, col) = () => { return document.querySelector('some-lement'); }

currently I can return only string generated html.

You cannot return objects to the template function, but you can use the outerHTML attribute to convert the object to a string:
https://snippet.dhtmlx.com/2h85gnpf

1 Like