bootstrap-table: Other scripts does not work within bootstrap-table.js

Other scripts for example PhotoSwipe.js does not works within bootstrap-table.js

I add to bootstrap-table in the detailFormatter few images and use PhotoSwipe.js for open up image like lightbox but it is does not works… outside bootstrap-table.js works … within bootstrap-table.js does not works

no error, no message just not work.

How be in this case?

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 23 (3 by maintainers)

Most upvoted comments

I am as beginner made it … https://live.bootstrap-table.com/code/typo3ua/4275

… but I think I need correction… if you not hard 😃

Sorry but we cant help for every basic javascript problem. You should hire someone who can work with javascript or you should learn it.

Check the difference between your item variable and the variable container from @wenzhixin example. Its a issue of the scope, your variable will be filled but cant be used outside of the scope.

Example (check the console): https://live.bootstrap-table.com/code/UtechtDustin/4268

You are welcome!

Sure for lightbox its pretty easy as you only need the data attribute. https://live.bootstrap-table.com/code/UtechtDustin/4244

Please provide us an example using our editor.