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

Comments

  • edited April 12

    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

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion