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)
@typo3ua Working example: https://live.bootstrap-table.com/code/wenzhixin/4246
https://live.bootstrap-table.com/code/wenzhixin/4326 @typo3ua
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
itemvariable and the variablecontainerfrom @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.