PDA

View Full Version : Using Simple Tasks example



austin1030
11 May 2012, 6:04 AM
Hi

I'm trying to use Simple Tasks example into my tabpanel and not quite working.
I can get it to work but

autoCreateViewport: true
cause to show outside of tabpanel.

Any idea how I can include in my tabpanel?

I tried to include like this.


Ext.define('Tasks.Cardswipe', {
extend: 'Ext.Container',

title:'Tasks',

initComponent: function(){

if (TasksSettings.useLocalStorage && !window.localStorage) {
alert('Simple Tasks is configured to use HTML5 Local Storage, but your browser does not support Local Storage');
} else {
Ext.application({

name: 'Tasks',

appFolder: 'tasks',

autoCreateViewport: true,

controllers: ['Lists', 'Tasks'],

});
}

this.callParent();
}
});


Thanks

scottmartin
14 May 2012, 2:16 PM
You cannot place a ViewPort into another panel. It was designed to cover the entire client body.

Regards,
Scott.