Hi,
we using a dataview to show and select an article.
Is there any possiblity to add a Switch (view) for each item so the user can set a on/off status?
thanks
with a dataTable I can do this:
columns:[
{id:“checked”, template:function(obj){
return <span class="webix_icon switcher fa-toggle-${obj.checked?"on":"off"}"></span>
}}
],
but is this also possible with dataView?
Hello @wimk ,
You can solve it via custom HTML template settings for dataview.
Also, you can track toggle value and update the related property in data items.
Please take a look at the snippet:
https://snippet.webix.com/679pn8nx
thnx