3D FlipBook - Download Click event

m***k@idea.ie
2021-06-24
2021-06-30

Hello, We have enabled download button and its work perfectly, but w need to call one of JavaScript function when anyone click on DOWNLOAD button. So is there any possibility of callback JS function when download event occurs?

Replies

a***r@3dflipbook.net
2021-06-30
2021-06-30

hi, you can:

$('#container').FlipBook({
  ...,
  ready: function(scene) {
    $(scene.view.getContainer()).find('.cmdSave').on('click', function() {
      console.log('download');
    });
  }
});
Log In to leave a comment