v6 - Intended Way to Invoke Dialog via Javascript to have it appear #43230
|
For example, I have a welcome dialog that shows on a user's first visit based on a cookie. In v5, with Modal, i could get it to show using jQuery simply by My question is on v6, how do I accomplish the same, using regardless if I use jQuery to accomplish it or vanilla JavaScript. After converting over to Dialog, it doesn't seem
and even |
Replies: 2 comments 2 replies
https://getbootstrap.com/docs/6.0/components/dialog/#javascript-behavior
|
|
Playing with v6 alpha I decided to write a small jQuery plugin: Then you can do things like |
https://getbootstrap.com/docs/6.0/components/dialog/#javascript-behavior
$('#welcomeDialog').show()is jQuery’s own display toggle and has nothing to do with Bootstrap. It didn’t really open a v5 Modal properly either (that was$('#welcomeModal').modal('show')).