DataLayout

I can add a button in Datalayout.
But can we react on Click event from this button to get the Item ?

https://snippet.webix.com/4hkg0y8k

Hello,
Could you please clarify why do you want to use datalayout for this case?
Maybe, using list with a button will be a good solution. Something like https://snippet.webix.com/9yubnfaw

Also, is possible to add onClick to template if you want to get the id of the item: https://snippet.webix.com/7ivmj476

Can you add in manual, we can use the data property when the view is used in datalayout. It’s a very important point.

Can’t we have the data property for Button view as for template ?

As we don’t have activeContent anymore, i want to try to do the same.
With ActiveContent, we could use the $masterId to get Item. How can i do the same with the dataLayout ?

thanks

I can get ITem in this way
https://snippet.webix.com/zdlo20nx

Why not use data property on every view as for template ?
It will be easy when using dataLayout to receive the Item data as it’s with the template view.

Thanks