1
0
mirror of https://github.com/xuthus83/pigallery2.git synced 2024-11-03 21:04:03 +08:00
pigallery2/frontend/app/gallery/grid/grid.gallery.component.html

25 lines
937 B
HTML
Raw Normal View History

2016-04-28 04:37:07 +08:00
<div class="lightboxCss"
#lightbox
(click)="hideLightBox($event)"
[style.top.px]="lightboxModel.top"
[style.left.px]="lightboxModel.left"
[style.width.px]="lightboxModel.image.width"
[style.height.px]="lightboxModel.image.height">
<img [src]="lightboxModel.image.src" width="100%" height="100%"/>
</div>
<div #gridContainer *ngIf="directory" (window:resize)="onResize()" >
<gallery-photo
2016-04-28 04:37:07 +08:00
*ngFor="#gridPhoto of photosToRender"
*ngIf="gridPhoto"
2016-04-28 04:37:07 +08:00
(click)="showLightBox($event,gridPhoto)"
[photo]="gridPhoto.photo"
[directory]="directory"
[style.width.px]="gridPhoto.renderWidth"
[style.height.px]="gridPhoto.renderHeight"
2016-04-28 04:37:07 +08:00
[style.marginLeft.px]="IMAGE_MARGIN"
[style.marginRight.px]="IMAGE_MARGIN">
</gallery-photo>
</div>