如何使用Secha Touch 2.0.2将徽章设置为SegmentedButton
var segmentedButton = new Ext.SegmentedButton({
allowMultiple: true,
items: [
{
text: 'Option 1',
},
{
text : 'Option 2',
pressed: true
},
{
text: 'Option 3'
}
],
listeners: {
toggle: function(container, button, pressed){
console.log("User toggled the '" + button.text + "' button: " + (pressed ? 'on' : 'off'));
}
}
});
Ext.Viewport.add({ xtype: 'container', padding: 10, items: [segmentedButton] });

像这样:
任何人都知道该怎么做?最好使用SegmentedButton