sridhar.boganathan
23 Apr 2012, 5:11 AM
Hi All,
As per my requirements, I need to have vbox with two grids, it should be with splitter to resize by users. I used VBOX Layout example in http://dev.sencha.com/deploy/ext-4.0.0/examples/layout-browser/layout-browser.html to get an idea of VBOX and HBOX.
Ext.define('AccountDetails' ,{
extend: 'Ext.panel.Panel',
alias: 'widget.accdetails',
tbar: [{
xtype: 'button',
text: 'Create Account'
},{
xtype: 'button',
text: 'Delete Account'
}
],
layout: {
type: 'vbox'
},
items: [
{html:'Created Acconts', flex:1},
{html:'Remaining Account (Savings, Current & Credit Account)', height:150},
{html:'panel 3', flex:2}
],
initialize: function(){
console.log("Init Account Details");
}
});
But this is not displaying vbox and it is displaying toolbar. This component should be child of tab panel as per my requirements.
I have tried the above with two grid which did the same output as I mentioned. I have tried with flex, height, width, pack, and align. All of them gave me the same output as mentioned.
Please help me to find out what I am wrong with this.
In addition to the above, I need to change the vbox to hbox by code i.e., users should be able to change the view perspective. Suggest for this also.
-Sridhar
As per my requirements, I need to have vbox with two grids, it should be with splitter to resize by users. I used VBOX Layout example in http://dev.sencha.com/deploy/ext-4.0.0/examples/layout-browser/layout-browser.html to get an idea of VBOX and HBOX.
Ext.define('AccountDetails' ,{
extend: 'Ext.panel.Panel',
alias: 'widget.accdetails',
tbar: [{
xtype: 'button',
text: 'Create Account'
},{
xtype: 'button',
text: 'Delete Account'
}
],
layout: {
type: 'vbox'
},
items: [
{html:'Created Acconts', flex:1},
{html:'Remaining Account (Savings, Current & Credit Account)', height:150},
{html:'panel 3', flex:2}
],
initialize: function(){
console.log("Init Account Details");
}
});
But this is not displaying vbox and it is displaying toolbar. This component should be child of tab panel as per my requirements.
I have tried the above with two grid which did the same output as I mentioned. I have tried with flex, height, width, pack, and align. All of them gave me the same output as mentioned.
Please help me to find out what I am wrong with this.
In addition to the above, I need to change the vbox to hbox by code i.e., users should be able to change the view perspective. Suggest for this also.
-Sridhar