Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a tiny lightbox directive #200

Closed
MurhafSousli opened this issue Sep 30, 2018 · 0 comments
Closed

Add a tiny lightbox directive #200

MurhafSousli opened this issue Sep 30, 2018 · 0 comments
Labels

Comments

@MurhafSousli
Copy link
Owner

Current lightbox usage without the directive

<div class="grid">
    <div class="grid-item" 
         *ngFor="let item of items; let i = index"
         (click)="lightbox.open(i)">

      <img [src]="item.data.thumbnail">

   </div>
</div>

Expected lightbox usage with the directive

<div class="grid">
    <div class="grid-item" 
         *ngFor="let item of items; let i = index"
         [lightbox]="i" [gallery]="galleryId">

      <img [src]="item.data.thumbnail">

   </div>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant