Framework7 - Create Photo Browser Instance



Description

Photo browser can be created and initialized using JavaScript only. You need to use related the App's method as shown below −

  • myApp.photoBrowser(parameters) − It is used to initialize photo browser with parameters and it also returns initialized photo browser instance.

    • parameters − It is a required parameter, which is an object with photo browser parameters.

The following code shows how to use the above photoBrowser() method −

var myPhotoBrowser = app.photoBrowser({
   zoom: 400,
   photos: ['image1.jpg', 'image2.jpg']
});

myPhotoBrowser.open(); // It opens photo browser
framework7_photo_browser.htm
Advertisements