Results 1 to 9 of 9

Thread: panel.show() does not create pop up.

  1. #1
    Ext JS Premium Member
    Join Date
    Feb 2009
    Posts
    28

    Default Answered: panel.show() does not create pop up.

    I created a panel by extending the Panel class and then executed the method show(). A pop up dialog displayed in Pre-Release 1. In PR2, the popup does not display. Is there a different way to display the pop up or is this a bug?

    Molamini

  2. Just tried this and works:

    Code:
    Ext.create('Ext.Panel', {
        centered : true,
        html     : 'Hello'
    }).show();

  3. #2
    Sencha User Jamie Avins's Avatar
    Join Date
    Mar 2007
    Location
    Redwood City, California
    Posts
    3,661
    Answers
    17

    Default

    May be a bug, can you post a test case?

    Sencha Inc

    Jamie Avins

    @jamieavins

  4. #3
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,448
    Answers
    3997

    Default

    Just tried this and works:

    Code:
    Ext.create('Ext.Panel', {
        centered : true,
        html     : 'Hello'
    }).show();
    Mitchell Simoens @LikelyMitch

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

    Posts are my own, not any current, past or future employer's.

  5. #4
    Sencha User
    Join Date
    Aug 2011
    Posts
    36

    Default

    I'm using Designer 2. I create and reference a Panel var popup = Ext.create('MyApp.view.ui.Confirmation'); and if I execute popup.showBy(button) it appears correctly next to the button on my screen however if I switch to popup.show('pop') nothing happens.

  6. #5
    Sencha Premium User mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    40,448
    Answers
    3997

    Default

    Try this little trick:

    Code:
    var panel = Ext.create('Ext.Panel', {
        centered : true,
        html     : 'Hello'
    });
    
    Ext.Viewport.add(panel);
    
    panel.show({
        type        : 'pop',
        isComponent : true
    });
    Mitchell Simoens @LikelyMitch

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

    Posts are my own, not any current, past or future employer's.

  7. #6
    Sencha User
    Join Date
    Aug 2011
    Posts
    36

    Default

    that took care of it, thanks

  8. #7
    Sencha Premium Member
    Join Date
    Apr 2009
    Posts
    290
    Answers
    9

    Default

    Quote Originally Posted by mitchellsimoens View Post
    Try this little trick:

    Code:
    panel.show({ type : 'pop', isComponent : true });
    Could you explain what the object you are passing in to the show method is doing? The documentation says that show takes an 'animation' object, but it doesn't provide any more details about what exactly you can specify there or where to find further information.

    Thanks!

    Jim

  9. #8
    Sencha Premium Member
    Join Date
    Apr 2009
    Posts
    290
    Answers
    9

    Default

    A quick followup, I see that 'pop' is an animation, but what does the 'isComponent' setting do? I don't see that mentioned in the documentation.

  10. #9
    Sencha User
    Join Date
    Apr 2014
    Posts
    5

    Default

    How do you hide the panel or destroy it @mitchellsimoens

Posting Permissions

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