Is there an xtype menu widget in Sencha 5? I want to popup a menu on click of an icon/button in a column of Ext.grid.Panel. Something like below would be great. I am basing that on KitchenSink widgets. Or, do I have to create a custom widget? If I need to create custom widget, can you post an example?
{
text: 'Menu',
width: 105,
xtype: 'widgetcolumn',
dataIndex: 'menu',
widget: {
width: 90,
xtype: 'menu',
items: [{
text: 'regular item 1'
},{
text: 'regular item 2'
},{
text: 'regular item 3'
},
handler: function(btn) {
var rec = menu.getWidgetRecord();
///...
}
}
}
Aucun commentaire:
Enregistrer un commentaire