How to define layout pattern when attaching to tabbar

I want to create a new layout by attaching it to a tabbar cell. How do I tell it which pattern to use? Alternately after it is created can I change the Pattern of a layout?

Thanks

attachLayout method takes pattern as the first parameter. for example
var layout = tabbar.cells(tabId).attachLayout(“2E”);

There is no easy way to create the custom pattern and documentation doesn’t provide information about this. You may provide the desired layout - possibly we could help

I worked that one out by trial and error. Thanks for your reply. Please can you tell me if it is possible to change the pattern of a layout AFTER it has been created?

Thanks.

Hello.

Dymanicaly - not. You may detach all content from cells (content that you need), unload current layout and init the new one. Then attach content back to cells.