Change multiview cell index

Hey,

Can it be done? There’s a method to the return the cell’s index but none to change it. I’ve looked over the cell’s config and didn’t find an index field anywhere.

The reason I need this is because I have a 3-cell multiview that I want to navigate but the current view should always be the second cell (special case reserved for the first and last element of my data set).

Hi,

Cells in multiview are defined the as well as the layout cells. Changing index assumes the dynamic layout rebuilding. But in fact, multiview was intended to avoid such situation.

Here’s an approximate solution: http://webix.com/snippet/5932ee15

But if the cell is a complex layout, this task is a bit more different, as config is available only for a particular widget. Layouts need to be defined as separate variables, and only copies should be initialized to preserve the original objects.

http://webix.com/snippet/7ee08bde

Another way is to rearrange tabs of the linked tabbar and get the needed view by the index of the corresponding tab. Here’s a draft:

http://webix.com/snippet/15c2d676