Open adamf321 opened 8 years ago
Here's the existing one: https://github.com/moxienyc/Now-This-web-app/tree/develop/app/components/utils/lightbox
I'm not sure if there are better ways to acheive this? @andybar2 @chrisweight
Here's some help text I wrote which might be reusable:
Lightbox
Place on an element to turn it into a lightbox. The element and it's children will hide/show as the lightbox triggers are clicked.
<section ln-lightbox="about-1">
<h3>Lightbox Title</h3>
<div class="inner">
Some content.
</div>
</section>
Lightbox Trigger
Place on an element to turn it into a lightbox trigger.
<a href="#" ln-lightbox-trigger="about-1">Click Me</a>
By default it will toggler the lightbox. Use the lightbox-action attribute to specify (possible actions are hid, show and toggle).
<a href="#" ln-lightbox-trigger="about-1" lightbox-action="show">Click Me</a>
Omit the lightbox id to control all lightboxes on the page. E.g. to hide them all:
<a href="#" ln-lightbox-trigger lightbox-action="hide">Click Me</a>
Copy in from ng-elements (then we can delete this repo)