framework7

Open full view…

How to add a download link in Photo Browser?

enshtein
Tue, 07 Nov 2017 19:04:54 GMT

--- var myPhotoBrowserDark = myApp.photoBrowser({ photos : data.photos, theme: 'dark', backLinkText: '', navbarTemplate: '<div class="navbar"><div class="navbar-inner"><div class="left sliding"><a href="#" class="link close-popup photo-browser-close-link {{#unless backLinkText}}icon-only{{/unless}} {{js "this.type === \'page\' ? \'back\' : \'\'"}}"><i class="icon icon-back {{iconsColorClass}}"></i>{{#if backLinkText}}<span>{{backLinkText}}</span>{{/if}}</a></div><div class="center sliding"><span class="photo-browser-current"></span><span class="photo-browser-of">из</span><span class="photo-browser-total"></span></div><div class="right"><a href=""><i class="icon ion-archive" style="font-size:30px;margin-right:10px;"></i></a></div></div></div>', }); --- how to put a link to download the current photo?

codegreenie
Wed, 08 Nov 2017 16:22:51 GMT

You can add a click event listener to get property of the image and use cordova file transfer plugin (the download section) to get the image to the phone

enshtein
Tue, 14 Nov 2017 18:57:34 GMT

how to do it?

enshtein
Tue, 14 Nov 2017 19:00:05 GMT

In addition, the link to download pictures in the on-the-go should be workable in different events: - just opened the photo browser - used the arrows to move to the pre-foto / next photo - using Swipe-movement Is the click event going to help me?