I create a modal dialog via bootboxjs, with option show: false
bootbox.dialog({
message: "Whatever",
show: false,
});
How can I then show that dialog (e.g. on a click event)?
Thanks!
I create a modal dialog via bootboxjs, with option show: false
bootbox.dialog({
message: "Whatever",
show: false,
});
How can I then show that dialog (e.g. on a click event)?
Thanks!
Copyright © 2021 Jogjafile Inc.
I haven't used Bootbox before, but after looking at the source, you add the
data-bb="dialog"
attribute onto the button. Then, define a click function at the top of your script:Note: I am using
demo
namespace. I saw it in the source they were using on the page. So change thisHope this helps in some way