Is there a way to add title tags to each image in the grid view using ngx-crystal-gallary
<crystal-gallery [images]="selectedFolder.imageUrlsWithPreview" [config]="myConfig">
</crystal-gallery>
myImages = [
{
preview: 'path_to_preview',
full: 'path_to_full_image',
width: natural_width, // used for masonry
height: natural_height // used for masonry
description: '<description/title of the image>' // optional property
},
...
myConfig = {
...
};
];
<crystal-gallery [images]="myImages" [config]="myConfig"></crystal-gallery>
result:
UPDATE:
for your partical usecase, ngx-crystal-gallery doesn't support titles on the images grid.
alternative : use ng-image-slider
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.