Search the web
Sign In
New User? Sign Up
ydn-javascript · Yahoo! User Interface Library Group
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Changing panel's modal attribute   Message List  
Reply | Forward Message #43636 of 52127 |
RE: [ydn-javascript] Re: Changing panel's modal attribute

Hi Ania,

 

You should be able to set modality after initial creation. However, as currently implemented the modal switch is only acted upon when the panel/dialog is made visible (this should be fixed, so that setting modal on an already visible container enables the modality handling – I’ll look into this for a future release). For your use case it sounds like the container is never hidden, so the “beforeShow” event is never fired – which initiates the creation/showing of the mask.

 

You can probably achieve the same results by invoking:

 

    panel.buildMask();

    panel.bringToTop();

    panel.showMask();

 

After you set modal:true on an already visible panel.

 

Hope that helps.

 

Regards,

Satyen

 


From: ydn-javascript@yahoogroups.com [mailto:ydn-javascript@yahoogroups.com] On Behalf Of aniad
Sent: Monday, January 12, 2009 3:19 PM
To: ydn-javascript@yahoogroups.com
Subject: [ydn-javascript] Re: Changing panel's modal attribute

 

I'm still hoping someone can let me know if this is possible, changing
the 'modal' property of a panel after it has been created. If that is
not possible, I will try a different tact, but I would like to know
the answer to this approach first.
Thanks much,
Ania.

--- In ydn-javascript@yahoogroups.com, "aniad" <aniad@...> wrote:
>
> I don't mean to press, but does anyone have an idea about changing
> modality of a panel once it was created?
>
> Thank you,
> Ania.
>
> --- In ydn-javascript@yahoogroups.com, "aniad" <aniad@> wrote:
> >
> > Any ideas on this?
> > Thanks much,
> > Ania.
> >
> > --- In ydn-javascript@yahoogroups.com, "aniad" <aniad@> wrote:
> > >
> > > I create a panel into which I display a flex widget in an
iframe. The
> > > cost of creating the widget and its utility is such that we want to
> > > create it once and hide it when not shown. Because of quirks in
> > > browsers, hiding a flex widget often makes its external
APIs/functions
> > > impossible to access, therefore I "hide" the panel, with flex in an
> > > iframe in it, by putting it at negative xy coordinates. That
seems to
> > > work fine. However, there is an issue with modality. When first
> > > creating the panel I create it "modal:false" as it is only
created and
> > > put off-screen (not shown), however, when the panel is to be
shown we
> > > want it modal. I tried:
> > >
> > > myPanel.cfg.setProperty ( "modal", true );
> > >
> > > but that didn't work, ie the panel still showed up modless. Is
there
> > > a way to change the `modal' attribute of a panel once it is created?
> > >
> > > Thank you,
> > > Ania.
> > >
> >
>



Tue Jan 13, 2009 4:56 am

sdezzi
Online Now Online Now
Send Email Send Email

Forward
Message #43636 of 52127 |
Expand Messages Author Sort by Date

I create a panel into which I display a flex widget in an iframe. The cost of creating the widget and its utility is such that we want to create it once and...
aniad
Online Now Send Email
Jan 6, 2009
11:05 pm

Any ideas on this? Thanks much, Ania....
aniad
Online Now Send Email
Jan 7, 2009
8:18 pm

I don't mean to press, but does anyone have an idea about changing modality of a panel once it was created? Thank you, Ania....
aniad
Online Now Send Email
Jan 9, 2009
5:35 pm

I'm still hoping someone can let me know if this is possible, changing the 'modal' property of a panel after it has been created. If that is not possible, I...
aniad
Online Now Send Email
Jan 12, 2009
11:19 pm

Hi Ania, You should be able to set modality after initial creation. However, as currently implemented the modal switch is only acted upon when the panel/dialog...
Satyen Desai
sdezzi
Online Now Send Email
Jan 13, 2009
5:03 am

Thank you Satyen! I didn't see your original reply (even though I checked every day to see if there was one..., that's why I posted again). This works great!...
aniad
Online Now Send Email
Jan 16, 2009
5:30 am
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help