1. #1
    Sencha User
    Join Date
    Aug 2009
    Location
    Austin, TX
    Posts
    100
    Vote Rating
    0
    ShatyUT is on a distinguished road

      0  

    Question Ext Designer implementation question

    Ext Designer implementation question


    I've finally gotten my license for Designer and built my first UI with it today and noticed that everything that comes out is an extension of the component that I selected in the designer. Is that the preferred method to build a UI? All of my hand-coded stuff doesn't do it that way because the examples are not built that way either for the most part.

    I just want to make sure I'm producing good code.

  2. #2
    Sencha - Desktop Packager Dev Team jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD.
    Posts
    1,745
    Vote Rating
    7
    jarrednicholls will become famous soon enough jarrednicholls will become famous soon enough

      0  

    Default


    Generally speaking, yes, creating your own sub-classes in their own .js files is the standard way that Ext recommends building a large & complex project.

    Our next big feature is what's call "Promote to Class", which will allow you to save/share custom created components in the Designer for reuse, among other things.

    The examples are very basic to show the components off, but not necessarily showing a good standard for organizing your project code. Small things are fine to just configure and use, but larger projects it is recommended to create sub-classes as good practice to promote component-oriented design and reuseability/extensibility.

  3. #3
    Sencha User
    Join Date
    Aug 2009
    Location
    Austin, TX
    Posts
    100
    Vote Rating
    0
    ShatyUT is on a distinguished road

      0  

    Default


    Thanks for the explanation Jarred! I wish I had known that a long time ago now that I am several months into a pretty large project. I'm sure I could've read it somewhere...oh well. There will be future projects for me to do it that way.

  4. #4
    Sencha - Desktop Packager Dev Team jarrednicholls's Avatar
    Join Date
    Mar 2007
    Location
    Baltimore, MD.
    Posts
    1,745
    Vote Rating
    7
    jarrednicholls will become famous soon enough jarrednicholls will become famous soon enough

      0  

    Default


    You're welcome. Being able to wrap up your behavior, event handlers, etc. inside of a custom sub-class is invaluable for well-structured javascript code. You can fudge it with using your own objects or singletons to "scope" or "namespace" your behavior, but that quickly becomes hard to maintain.

Similar Threads

  1. Noob Ext Designer question : building an app with Ext.windows
    By dcoan in forum Ext Designer: Help & Discussion
    Replies: 10
    Last Post: 14 Dec 2011, 2:13 AM
  2. Ext Designer Question
    By imegai in forum Ext Designer: Help & Discussion
    Replies: 2
    Last Post: 12 May 2010, 7:35 AM
  3. 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
  4. Impressions on Ext Designer - question for the conference attendees.
    By jay@moduscreate.com in forum Community Discussion
    Replies: 23
    Last Post: 15 Aug 2009, 5:25 AM

Thread Participants: 1

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar