view segmented with Dynamic Tabbar

how do I create the same as the example but for view:“segmented” ?
https://snippet.webix.com/jtqhcy6u
Thank you.

Tabbar is an extension of Segmented, it inherits everything from it plus has its own code for the popup with dynamically hidden tabs and different styling. I think the best way would be simply to style Tabbar so that it looked like Segmented.