Results 1 to 3 of 3

Thread: Window Names Question

  1. #1
    Sencha User
    Join Date
    Jun 2009
    Location
    Burlington, Ontario
    Posts
    175

    Default Window Names Question

    I'm a big fan of the designer, saves me a lot of time. I do find one aspect annoying and was wondering if this is a bug or I am doing something wrong.

    For my design, I'm using a Window Container as the top parent of the component. I give it a name, but it always exports the parent window as MyWindowUi no matter what name I actually give the component itself. It is a minor inconvenience, but would be nice if the name was properly exported like all other components.

    PHP Code:
    MyWindowUi Ext.extend(Ext.Window, {
        
    title'New User',
        
    width449,
        
    height538,
        
    resizablefalse
    I want the MyWindowUi to use the name I create.

    Thanks,
    Dean.

  2. #2
    Sencha User aconran's Avatar
    Join Date
    Mar 2007
    Posts
    9,488

    Default

    Dean -

    Check out the jsClass configuration. You will be generating two files, one which is a .ui.js file and has the Ui suffix and another .js file which is an extension of the Ui file. You should be placing all of your implementation in the plain .js file.
    Aaron Conran
    @aconran

  3. #3
    Sencha User
    Join Date
    Jun 2009
    Location
    Burlington, Ontario
    Posts
    175

    Default

    Aaron,

    Awesome, I didn't see the jsClass attribute before. Thanks for pointing that out, works perfectly.

    Thanks,
    Dean.

Posting Permissions

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