This support forum belongs to the Overlay Extras Gallery Module.
Overlay Extras has a bug tracker here: http://github.com/ericf/yui3-gallery/issues
| Page 2 of 2 | [ 14 posts ] | Go to page Previous1, 2 |
MarcYUI Contributor
|
Hi Eric,
Let me start by saying the module is great and indeed very small. I just don't have much use for outside events, and use a lot of other yui stuff. Basically, I'm trying to shave off every Kb I can. Do you have a suggestion on how to capture the render Event? I need to add rounded corners and that event seems like the best time to do it? Cheers, Marc |
|
Marc,
You could always use my older, deprecated, sand-alone OverlayModal Plugin: http://yuilibrary.com/gallery/show/overlay-modal which doesn't use outside-events. |
MarcYUI Contributor
|
Yeah, I was thinking about that too. But I saw that 'supersedes' statement in the source. Made me think it might be auto overwritten by YUI during the loading process. But didn't look into that
|
|
The supersedes means if gallery-overlay-modal is already loaded on the page, then gallery-overlay-extras comes along, overlay-extras will be used in favor of overlay-modal.
Eric Ferraiuolo
if you're lazy-using modules via Y.use (inside your YUI instance) and you created something like: OverlaysClick here to see the revision history on this Gist.The following would occur: If you clicked #foo, gallery-overlay-modal would load and be used. Then if you clicked #bar, gallery-overlay-extras would be loaded and used for both the modal and autohide plugins. But, If you clicked #bar first, gallery-overlay-extras would be loaded and used. Then if you clicked #foo, gallery-overlay-modal would not be loaded nor used, because gallery-overlay-extras supersedes it. I think this is the functionality you would want, this also helps shave bytes by only loading the code used to create overlays when they are needed. Since most of the time you do not need the Overlay code at page-load time you can defer the loading of the modules until you actually need them using Y.use. You may also be interested in my Component Manager which makes lazy-loading of module and on-demand creation of instances nice and easy. |
| Page 2 of 2 | [ 14 posts ] | Go to page Previous1, 2 |
| You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum |
© 2006-2013 Yahoo! Inc. All rights reserved.
All code on this site is licensed under the BSD License unless stated otherwise.
About This Site · Security Contact Info
Powered by phpBB® Forum Software © phpBB Group