Page 1 of 2 12 LastLast
Results 1 to 10 of 12

Thread: Ext JS 4 porting to Sencha Touch

  1. #1
    Sencha User
    Join Date
    Feb 2012
    Posts
    5
    Vote Rating
    0
      0  

    Post Answered: Ext JS 4 porting to Sencha Touch

    New to Ext JS 4 and evaluating...

    Question: If an application is developed using the Ext JS 4, is it possible to port it to Sencha Touch? If so, please provide links to reference docs. Thanks for your time.

  2. Sencha Touch 2's Controller class won't work 100% with Ext JS 4. You can use this.control in the init method like in Ext JS 4 but for things like refs or views they have to be in the config object where as in Ext JS 4 it doesn't use the config object. The config object for models should be used in Sencha Touch 2 whereas in Ext JS 4 it doesn't use the config object.

  3. #2
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,381
    Answers
    3997
    Vote Rating
    1536
      0  

    Default

    This has been talked about a lot. Parts of it can be but the logic and flow of an Ext JS is going to be different than a Sencha Touch app because the UI is going to be different.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  4. #3
    Sencha User
    Join Date
    Feb 2012
    Posts
    5
    Vote Rating
    0
      0  

    Post

    So for example, if many custom classes were written for Ext JS 4, can these classes be readily used in/ported to Sencha Touch? I know the UI will definitely differ a lot.

  5. #4
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,381
    Answers
    3997
    Vote Rating
    1536
      0  

    Default

    it depends on the custom class. If it's a widget/view then no. Sencha Touch 2 uses the config object where Ext JS 4 doesn't really use it, it's present but not fully developed like it is in Sencha Touch 2.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  6. #5
    Sencha User
    Join Date
    Feb 2012
    Posts
    5
    Vote Rating
    0
      0  

    Default

    Just to be more specific...

    Take for example the application used in the Ext JS4 MVC Guide - http://docs.sencha.com/ext-js/4-0/#!...n_architecture

    Can any of the Model and Controller classes be ported to Sencha Touch quickly without re-writing the whole thing? If so, please provide reference links. Thanks.

  7. #6
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,381
    Answers
    3997
    Vote Rating
    1536
      0  

    Default

    Sencha Touch 2's Controller class won't work 100% with Ext JS 4. You can use this.control in the init method like in Ext JS 4 but for things like refs or views they have to be in the config object where as in Ext JS 4 it doesn't use the config object. The config object for models should be used in Sencha Touch 2 whereas in Ext JS 4 it doesn't use the config object.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  8. #7
    Sencha User
    Join Date
    Feb 2012
    Posts
    5
    Vote Rating
    0
      0  

    Default

    How about data classes - models and stores? According to presentation in SenchCon, Ext JS and Sencha Touch use the same data layer. Does that mean that models and stores (after being defined) can be used within the Ext JS as well as Sencha Touch?

  9. #8
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,381
    Answers
    3997
    Vote Rating
    1536
      0  

    Default

    Sencha Touch version uses the config object to define things like fields and proxy where Ext JS 4 doesn't.
    Mitchell Simoens @LikelyMitch
    Modus Create, Senior Frontend Engineer
    ________________
    Need any sort of Ext JS help? Modus Create is here to help!

    Check out my GitHub:
    https://github.com/mitchellsimoens

  10. #9
    Sencha User
    Join Date
    Feb 2012
    Posts
    5
    Vote Rating
    0
      0  

    Default

    Is it safe to say that other than the config object in Sencha Touch, the data classes can be easily ported from Ext JS4 without major rewrites?

  11. #10
    Sencha User
    Join Date
    Jul 2011
    Posts
    48
    Vote Rating
    1
      0  

    Default

    @Mitchell: Can you please elaborate on the config option and how it applies to ExtJS 4? This is the first I've heard it mentioned in a "not really in Extjs" context....yet from reading the docs, I was left with the idea that every class in ExtJs used it, or could use it...and that it added functionality such as auto creating getters and setters. Yet I've struggled to understand how to use it correctly, and maybe this is why.

    @moccasin, sorry for the derail.

Page 1 of 2 12 LastLast

Posting Permissions

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