1. #1
    Ext JS Premium Member
    Join Date
    Mar 2011
    Location
    Geesteren
    Posts
    1
    Vote Rating
    0
    stefan.vissia is on a distinguished road

      0  

    Question 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:

    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!'
                    }
                ]
            });
        }
    });
    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?

    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

  2. #2
    Sencha User
    Join Date
    Aug 2008
    Posts
    101
    Vote Rating
    6
    FoxMulder900 is on a distinguished road

      0  

    Default


    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

  1. Application Layout Question
    By htedatawarehouse in forum Ext 3.x: Help & Discussion
    Replies: 0
    Last Post: 11 Dec 2009, 2:03 AM
  2. question on Application architecture
    By mikecar in forum Ext 2.x: Help & Discussion
    Replies: 2
    Last Post: 19 Jun 2009, 2:57 PM
  3. Question about navigation within the application
    By npintos in forum Ext 2.x: Help & Discussion
    Replies: 6
    Last Post: 3 Oct 2008, 2:22 AM
  4. Question about using application profiles.
    By martin meijer in forum Ext.nd for Notes/Domino
    Replies: 2
    Last Post: 14 Feb 2008, 7:44 AM
  5. Ext Application design question
    By JorisA in forum Ext 1.x: Help & Discussion
    Replies: 15
    Last Post: 21 May 2007, 4:53 PM

Thread Participants: 1

Tags for this Thread

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..."