-
30 Mar 2011 5:25 AM #1
Ext.Application Question
Ext.Application Question
Hi all,
I'm looking into EXT 4 and came by the Ext.Application class, in the source code i find some instructions how to use it:
This code is not running because of a call within Ext.Application to Ext.Viewport.init, this does not exists because the in EXT4 the correct init call would be Ext.container.Viewport, correct?Code:new Ext.Application({ name: 'MyApp', launch: function() { this.viewport = new Ext.panel.Panel({ fullscreen: true, id : 'mainPanel', layout: 'card', items : [ { html: 'Welcome to My App!' } ] }); } });
Is the Ext.Application ready to use, or will this feature be released in a futere release?
Thanks,
Stefan Vissia
Senior Software Engineer
Quality Online BV
-
30 Mar 2011 12:35 PM #2
I had the same issue, it seems there is a bug in Ext.Application. I am assuming the viewport will automatically be created in a future release as the documentation states; however the following changes in your code worked for me:
Code:new Ext.Application({ name: 'MyApp', autoInitViewport: false, launch: function() { this.viewport = new Ext.container.Viewport({ fullscreen: true, id : 'mainPanel', layout: 'card', items : [ { html: 'Welcome to My App!' } ] }); } });
Similar Threads
-
Application Layout Question
By htedatawarehouse in forum Ext 3.x: Help & DiscussionReplies: 0Last Post: 11 Dec 2009, 2:03 AM -
question on Application architecture
By mikecar in forum Ext 2.x: Help & DiscussionReplies: 2Last Post: 19 Jun 2009, 2:57 PM -
Question about navigation within the application
By npintos in forum Ext 2.x: Help & DiscussionReplies: 6Last Post: 3 Oct 2008, 2:22 AM -
Question about using application profiles.
By martin meijer in forum Ext.nd for Notes/DominoReplies: 2Last Post: 14 Feb 2008, 7:44 AM -
Ext Application design question
By JorisA in forum Ext 1.x: Help & DiscussionReplies: 15Last Post: 21 May 2007, 4:53 PM


Reply With Quote