Note that there are some explanatory texts on larger screens.

plurals
  1. POphotoswipe custom toolbar with jquery mobile
    primarykey
    data
    text
    <p>I am new in jquery mobile and jquery also. I am working on a project with phonegap and jquery mobile. I am using PhotoSwipe for image gallery. It is working nice and show the images. But I want to make a custom toolbar for photoswipe for my gallery. I saw their given custom-toolbar sample and almost made it. But though I am new in this sector so I failed to integrate it with jquery mobile. And my custom button does not work at all. Here is my code sample.</p> <pre class="lang-js prettyprint-override"><code>for (var i = 0; i &lt; photo_len; i++) { $('.GalleryAccessories').append('&lt;li&gt;&lt;a href="' + image_item[i].original + '" rel="external"&gt;&lt;img src="' + image_item[i].original + '" alt=""/&gt;&lt;/a&gt;&lt;/li&gt;'); } $('.GalleryAccessories').trigger("create"); var myPhotoSwipe = $(".GalleryAccessories a").photoSwipe({ getToolbar: function(){ return '&lt;div class="ps-toolbar-close" style="padding-top: 12px;"&gt;Back&lt;/div&gt;&lt;div class="ps-toolbar-play" style="padding-top: 12px;"&gt;Play&lt;/div&gt;&lt;div class="ps-toolbar-previous" style="padding-top: 12px;"&gt;Previous&lt;/div&gt;&lt;div class="ps-toolbar-next" style="padding-top: 12px;"&gt;Next&lt;/div&gt;&lt;div class="ps-toolbar-close" style="padding-top: 12px;"&gt;View All&lt;/div&gt;'; }, jQueryMobile: true, loop: false, enableMouseWheel: false, enableKeyboard: false }); myPhotoSwipe.show(0); </code></pre> <p>View All button doesn't work at all. I have tried their given code but no luck. I even tried just what i do now but still it doesn't work. Sorry for my poor english. Please help me... Thanks in advance.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload