How to add switch view to datatable

Hello i try to add switch view in the last column of datatble. As a template it possible to see but click event not working Code Snippet

Good day, @roma
I’m afraid there is no way to add Switch view itself in a datatable. There are other common templates that you can define in datatable cells.
However, you can also try custom HTML template as in your example and, for example, update datatable rows’ data (checked: true / false state) by onClick.
Check the snippet: Code Snippet

2 Likes

Hi @MariyaDemy Thanks! Code snippet work exactly as need