Ext meun菜单

this.categoryMenu = new Ext.menu.Menu({style: {
             'background-image': 'none'  //清除菜单上的竖线
        }});
for(j=0; j<this.config.CATEGORIES.length; j++){
this.categoryMenu.add(new Ext.Action({
id : this.config.CATEGORIES[j].ID,
style: 'padding: 0 0 0 0',    //菜单上的名称左对齐
text : this.config.CATEGORIES[j].VALUE,
handler : function() {
frDataGrid.categorySelected = this.id;
frDataGrid.loadData(null,null,true);
frDataGrid.reviewButton.disable();
},
disabled : false
}));
}

你可能感兴趣的:(Ext.menu)