Closed alterhu2020 closed 5 years ago
Like I have a caption property like below:
{
url: consts.urls.STATIC_BASE_URL + post.url,
caption: ` <h3>${post.desc}</h3><a id="detail" class="iconfont icon-detail external"></a> <a id="daohang" class="iconfont icon-daohang external"></a>`
}
You can see i had put two links in the caption, any event fired in the link it will trigger to the photobrowser's click event.
How can i prevent this and use my custom event, thanks very much . @nolimits4web thanks .
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
Is your feature request related to a problem? Please describe.
See link: https://github.com/framework7io/framework7/issues/1833 ,but it had closed and actually had not resolved.
Describe the solution you'd like
currently the photo browser have a caption to show, and its perfect. I create some link/button inside the caption, how do i be able to click on the link/button in caption? example: myPhotoBrowserStandalone = myApp.photoBrowser({ photos : [ { url: photoURL, caption: description+"Close Popup" },],type: 'popup' });
Describe alternatives you've considered
I expected the link/button in caption could be clicked, so that it could link to other pages or close the photo browser.
Additional context