Javascript extjs如何创建带有单选按钮的菜单
我可以创建带有复选框的菜单,如下所示Javascript extjs如何创建带有单选按钮的菜单,javascript,extjs,menu,Javascript,Extjs,Menu,我可以创建带有复选框的菜单,如下所示 xtype : 'button', id : 'resultExportBtn', ui : 'custombtn', cls : 'field-margin', style : 'margin-right:5px', text : 'Export', menu : [ { text : 'CSV', fName : 'csv', checked : true, xtype : 'me
xtype : 'button',
id : 'resultExportBtn',
ui : 'custombtn',
cls : 'field-margin',
style : 'margin-right:5px',
text : 'Export',
menu : [
{
text : 'CSV',
fName : 'csv',
checked : true,
xtype : 'menucheckitem'
}, {
text : 'PDF',
fName : 'pdf',
checked : false,
xtype : 'menucheckitem'
}
]
有人知道如何用单选按钮创建菜单吗?使用radiogroup xtype代替menucheckitem
menu : [
{
xtype: 'radiogroup',
columns: 1,
vertical: true,
items: [
{
boxLabel: 'CSV',
name: 'rb',
inputValue: '1'
},
{
boxLabel: 'PDF',
name: 'rb',
inputValue: '2'
}
]
}
]