framework7io / framework7

Full featured HTML framework for building iOS & Android apps
http://framework7.io
MIT License
18.13k stars 3.23k forks source link

Enable button clicking on caption of photo browser (Framework 7) #3075

Closed alterhu2020 closed 5 years ago

alterhu2020 commented 5 years ago

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

alterhu2020 commented 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> &nbsp;&nbsp;&nbsp;<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 .

stale[bot] commented 5 years ago

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.