Tabview select not work

I’m trying to select the tab view in the button click event.

In order to select a tab view as a program, it must have an id attribute.

However, in a class written with JetView
If the id attribute is present, the contents of the tab will not be displayed when the tab is clicked with the mouse.

https://snippet.webix.com/xmu9hik6

Hello @kkh,

This happens because the wrong ID of the datatable is passed to tabview. There are 2 ways to set a datatable into the tabview’s body without breaking nesting:

  1. Through the layout. The ID should be at the top level and specified in the body object, and then the complexity of the structure can be whatever you want: https://snippet.webix.com/mzl9iekq
  2. Put Jet view as $subview into cell (more info about $subview you can find in our Webix Jet docs). Please, check out the snippet with the example: Code Snippet

Thank you very much for your detailed explanation.