Results 1 to 4 of 4

Thread: Creating Window using Viewport or Not?

  1. #1
    Sencha Premium Member RiaanSA's Avatar
    Join Date
    Mar 2012
    Location
    Centurion South Aftica
    Posts
    70
    Vote Rating
    0
      0  

    Exclamation Unanswered: Creating Window using Viewport or Not?

    I am pretty much new to ExtJs and trying to achieve an application where I can drop a couple of Windows on my browser with Grid's inside.

    Now reading and following the MVC method of doing things it seems like using viewport on the main js are the way to go.

    Now creating panels in there isn't to hard at using controllers and views. But I don't want panels, I want to use Windows like in the example portal demo.

    Do I need a viewport? Or do we only use viewports for Pannel's?

    Can I get a complete example code of how to create a portal like the portal demo.

    Any help will be appreciated.

  2. #2
    Sencha - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,326
    Answers
    3884
    Vote Rating
    1297
      0  

    Default

    If you want to use Ext.window.Window then you don't need anything. It will, by default, render to the document body and display without any other component like Viewport.
    Mitchell Simoens @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it!

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

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is in print!

    When posting code, please use BBCode's CODE tags.

  3. #3
    Sencha Premium Member RiaanSA's Avatar
    Join Date
    Mar 2012
    Location
    Centurion South Aftica
    Posts
    70
    Vote Rating
    0
      0  

    Default

    Ok so let me quickly sum up what I understand.

    Using viewport allows me to utilize the whole area of the browser, meaning that if I do add panels it will keep the panels in the correct positions all the time?

    Let's say I want to add the "Ext.window.Window" and ""Ext.panel.Panel" like in the demo.

    Would I create a viewport for the panels or just keep everything in the body?

    Thanks for the advice.

  4. #4
    Sencha User
    Join Date
    Oct 2007
    Posts
    238
    Answers
    2
    Vote Rating
    0
      0  

    Default

    wondering the same, when my I use to Ext.create('Ext.window.Window'

    the created window behave very different, it break the framework or dragging window or reize does not work.

    Can you please share your code?

Posting Permissions

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