PDA

View Full Version : heplp! menu control



tarotjung
8 Mar 2011, 11:01 PM
i want my center region change (link to other JSP page or alert ), when i click on my menu in the north regin.



Ext.onReady(function(){
var viewport = new Ext.Viewport({
layout: 'border',
renderTo: document.body,
items: [{
region: 'north',
xtype: 'toolbar',
items: [
{xtype: 'tbbutton',text: 'Home'},
{xtype: 'tbbutton',text: 'Notice'},
{xtype: 'tbbutton',text: 'free'},
{xtype: 'tbbutton',text: 'QnA'},
{xtype: 'tbbutton',text: 'Mail'} ]
},{
region: 'center',
xtype: 'panel',
html: 'center'
}
}]
});
});

walldorff
11 Mar 2011, 8:08 PM
Please study this example (http://examples.extjs.eu/?ex=compcomm) form Saki's Ext Example Page. You can easily modify the code to meet your goals.

tarotjung
13 Mar 2011, 4:22 PM
thank you walldorff!!