Looking to create a vertical button group that looks very similar to Twitters own button groups (example http://mobile-patterns.com/#/i/10)
I’ve tried changing Touch’s code to layout: 'vbox' but it completely tweaks the roundness of each button and leaves their corner roundness as what they would look like in a horizontal format.
Code below:
var segmentedButton = new Ext.SegmentedButton({
allowMultiple: true,
layout: 'vbox',
items: [
{
text: 'Option 1'
},
{
text : 'Option 2',
pressed: true
},
{
text: 'Option 3'
}
]
});
Ext.Viewport.add({ xtype: 'container', padding: 10, items: [segmentedButton] });
Do I need to add my own CSS styles in order to make it work? Or is there a built-in config?
I’m also wondering if it’s best to use a List instead of a SegmentedButton…
Thanks!
Thiem was right, I ended up using
containerto hold a group of buttons.I was able to achieve the same effect by doing the following:
Javascript
CSS
Result
Here is an image of the final result!