Results 1 to 4 of 4

Thread: Designer Usage Questions

  1. #1
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,409

    Default Designer Usage Questions

    After using XDS for a few days, it has been an experience, but I am getting better at it.

    My question ... I would like to start developing apps using ExtJS. Would it be wise to use the designer to create the forms as I need, then use the XDS structure of leaving the app.ui.js intact and edit the app.js only ...
    ... or would it be a better practice to dump the app.js and rename app.ui.js->app.js, and simply use XDS as a starting point for creating my forms.

    I come from the Delphi world, so I have become spoiled when it comes to designing forms.

    Is the designer considered the 'newbie' approach, or will it become the standard way to create ExtJS apps?
    More project examples would be helpful.

    I ask, as I was having problems adding the RowEditor to my app using the XDS (ref) approach. I promoted a few items to class and I started having problems.

    Ref was placing '../' in the value, eg: '../refValue'

    I finally decided to just add the code to the ui.js and it was working in no time.

    I just want to get started with good habits before I get in too deep.

    Regards,
    Scott.

  2. #2
    Sencha - Support Team scottmartin's Avatar
    Join Date
    Jul 2010
    Location
    Houston, Tx
    Posts
    9,409

    Default

    So I guess there are no thoughts on this? Any comments would be appreciated!

    Regards,
    Scott

  3. #3
    Sencha User jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Frederick, MD
    Posts
    1,747

    Default

    Hi Scott,

    It is perfectly acceptable to use the Designer simply as a starting point for your UI...in fact, that's kind-of-sort-of what its purpose is :-) But in the sense that you throw away the .js file and rename/modify the .ui.js file directly. The downside to this is that you will not be able to use the Designer to modify your UI again for that component/class, obviously. If you instead modify the .js file only, you can continue to export new versions of the UI, while your implementation/behavior in the .js file are untouched and unaffected. So frankly, if you know exactly what your UI is going to look like the first time and it's never going to change, then you can safely ditch the .js file and use the .ui.js and go the manual route for any minor revisions from there on.

    In reference to your RowEditor integration plus "ref", doing it manually is the correct and only approach at this time until the custom UX integration feature is enabled. If you are unfamiliar with how "ref" works, you should read this: http://dev.sencha.com/deploy/dev/doc...ent&member=ref You will see what the "../" means in the path specification...it's correct and normal for "../" to appear in a ref, to move the reference up more than one level of ancestor components.

    Thanks,
    Jarred

  4. #4
    Sencha Premium Member
    Join Date
    May 2010
    Location
    Guatemala, Central America
    Posts
    1,519

    Default

    Hi fello Delphian.
    I'm also a Delphi developer as JEE also.
    As Jarred said, you can use the XDS as starting point but you lost the hability to modify your UI with the XDS.
    Think the XDS as the Delphi form editor but without the code editor (events and methos) which you must write in the initially generated "implementatio" js.
    Regards.

Similar Threads

  1. Ext Designer: Many , many Questions.........
    By fgeorge in forum Ext Designer: Help & Discussion
    Replies: 3
    Last Post: 30 Aug 2010, 7:16 AM
  2. Ext mobile usage questions
    By oliverashford in forum Ext 3.x: Help & Discussion
    Replies: 2
    Last Post: 25 Aug 2010, 3:28 AM
  3. Questions about events in Ext Designer
    By kyrillos52 in forum Ext Designer: Help & Discussion
    Replies: 4
    Last Post: 19 Aug 2010, 10:06 PM
  4. Ext Designer: How to add multiple radio buttons with designer?
    By lelapinblanc in forum Ext Designer: Help & Discussion
    Replies: 1
    Last Post: 26 Mar 2010, 1:38 PM
  5. New User: Layout Questions, Property Questions
    By muffinman in forum Ext 1.x: Help & Discussion
    Replies: 1
    Last Post: 25 Aug 2007, 12:02 PM

Posting Permissions

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