leebyeungok
22 Oct 2011, 1:10 AM
Ext.application({ name:'ToolBar Example',
launch: function() {
var count = 0;
var panel = new Ext.create('Ext.Panel',{
fullscreen: true,
html:'<BR><BR><BR><center>About ToolBar<BR>',
dockedItems: [{
xtype: 'toolbar',
dock: 'top',
items:[{
iconCls: 'info',
iconMask: true,
text:'INFOMATION',
},{
iconCls: 'favorites',
iconMask: true,
iconAlign:'top',
text:'INFOMATION',
},]
},{
layout: {
type: 'hbox',
pack: 'center',
},
xtype: 'toolbar',
height:100,
dock: 'bottom',
items:[{
html: '<img src="./img/arrow_left.png" height="70">',
},{
html: '<img src="./img/posol.png" height="70" >',
},]
},{
layout: {
type: 'vbox',
pack: 'center',
},
xtype: 'toolbar',
dock: 'left',
ui:'light',
id:'leftButton',
width:50,
items:[{
text: '<',
handler:function()
{
Ext.getCmp("leftButton").hide();
}
}]
},{
xtype: 'toolbar',
dock: 'right',
ui:'light',
items:[{
text: '>',
handler:function()
{
Ext.getCmp("leftButton").show();
}
}]
}]
});
}
});
left , right toolbar is not work normally....
28799
launch: function() {
var count = 0;
var panel = new Ext.create('Ext.Panel',{
fullscreen: true,
html:'<BR><BR><BR><center>About ToolBar<BR>',
dockedItems: [{
xtype: 'toolbar',
dock: 'top',
items:[{
iconCls: 'info',
iconMask: true,
text:'INFOMATION',
},{
iconCls: 'favorites',
iconMask: true,
iconAlign:'top',
text:'INFOMATION',
},]
},{
layout: {
type: 'hbox',
pack: 'center',
},
xtype: 'toolbar',
height:100,
dock: 'bottom',
items:[{
html: '<img src="./img/arrow_left.png" height="70">',
},{
html: '<img src="./img/posol.png" height="70" >',
},]
},{
layout: {
type: 'vbox',
pack: 'center',
},
xtype: 'toolbar',
dock: 'left',
ui:'light',
id:'leftButton',
width:50,
items:[{
text: '<',
handler:function()
{
Ext.getCmp("leftButton").hide();
}
}]
},{
xtype: 'toolbar',
dock: 'right',
ui:'light',
items:[{
text: '>',
handler:function()
{
Ext.getCmp("leftButton").show();
}
}]
}]
});
}
});
left , right toolbar is not work normally....
28799