Segmented is an integral button with as many segments as you like. Can be used for switching between MultiView cells.
{view:"segmented", multiview:true, value:1, options:[
{ id:"1", value:"Section A" }, // the initially selected segment
{ id:"2", value:"Section B" },
{ id:"3", value:"Section C" }]
}
//short form for options array
{ view:"segmented", options:["Section A", "Section B", "Section C"]}
Related sample: Holistic Panel with Multiple Buttons ('segmented')
Segmented Button provides the possibility to hide and show segments with the help of the corresponding methods: showOption and hideOption.
You need to pass the id of the view that should be hidden as a parameter.
// hiding view
$$("segmented").hideOption("viewId");
// showing view
$$("segmented").showOption("viewId");
Adding and Deleting Segments (Options) on the Go