Results 1 to 6 of 6

Thread: Differnce between Ext.setup and Ext.application

  1. #1
    Sencha User
    Join Date
    Aug 2011
    Posts
    8
    Answers
    1
    Vote Rating
    0
      0  

    Default Differnce between Ext.setup and Ext.application

    hi.

    i am new on sencha touch and also new on extjs. so i walked trough the "getting startet" tutorials. it may be that i do not have all essential basics but i can not see a real difference between ext.setup and ext.application. one tutorial start with setup the next one with application. but none of the tutorials explains why...

    if there is a essential difference, can anyone explain it?

    thanks a lot,
    a.

  2. #2
    Sencha User arthurakay's Avatar
    Join Date
    Sep 2008
    Location
    Antioch, IL
    Posts
    1,516
    Answers
    99
    Vote Rating
    77
      0  

    Default

    They're very similar, but you should be using Ext.Application - which does things like setting up global namespaces for your MVC-style application, auto-creates a viewport, etc. Just read the API docs on Ext.Application.

  3. #3
    Sencha User
    Join Date
    Aug 2011
    Posts
    8
    Answers
    1
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by arthurakay View Post
    They're very similar...
    thanks a lot. that's what i need to know for now. was a bit confusing in the tutorials

  4. #4
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,551
    Answers
    3931
    Vote Rating
    1271
      0  

    Default

    It really depends if you want to use MVC or not... Ext.Application is for MVC whereas Ext.setup is more for simpler things... just a quick note.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

    Check out my GitHub, lots of nice things for Ext JS and Sencha Touch
    https://github.com/mitchellsimoens

  5. #5
    Sencha User
    Join Date
    Aug 2011
    Posts
    8
    Answers
    1
    Vote Rating
    0
      0  

    Default

    Quote Originally Posted by mitchellsimoens View Post
    It really depends if you want to use MVC or not...
    i will. i do! thanks. guess thread could be changes to "answered"...

  6. #6
    Sencha User
    Join Date
    Jan 2012
    Posts
    3
    Vote Rating
    0
      0  

    Default How can elements be removed from the application in Ext.Setup and Ext.Application?

    It seems unclear from the documentation how an element in an application that is coded via Ext.Setup can be removed, versus the simpler "this.remove()" when using Ext.Application. Can anyone confirm?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •