![](/img/trans.png)
[英]How to put a title inside the image with ngFor using the ngx useful swiper (swiper.js)
[英]Adding title tags to each image in the grid view using ngx-crystal-gallary
有没有办法使用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>
结果:
更新:
对于您的特定用例,ngx-crystal-gallery 不支持图像网格上的标题。
备选方案:使用ng-image-slider
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.