PDA

View Full Version : Calendar Inside tab



Soumyajm
18 Jun 2012, 4:15 AM
Hi all, I am having one requirement to display the calendar inside tab in Extjs 4. Please guide me on this at the earliest. I am new into Ext js.

mitchellsimoens
20 Jun 2012, 5:24 AM
Moved from the Sencha Touch 2 Q&A forum to the Ext JS 4 Q&A forum for you.

scottmartin
20 Jun 2012, 3:38 PM
You can do the following:



Ext.create('Ext.tab.Panel', {
width: 400,
height: 400,
renderTo: document.body,
items: [{
title: 'Foo',
items: [{
xtype: 'calendarpanel', // xtype for calendar
}]
}, {
title: 'Bar',
tabConfig: {
title: 'Custom Title',
tooltip: 'A button tooltip'
}
}]
});


You will need to make sure the calendar is loaded in your html

Scott

Soumyajm
20 Jun 2012, 8:29 PM
Thanks a lot :)