I am using BootstrapDialog.show for modals and I want the modal to persist even if there is a click or touch(mobile) event outside the modal ..setting backdrop static works for html is not working for BootstrapDialog.show
BootstrapDialog.show({
title: 'Logout',
message: "Do you want to Logout?",
buttons: [{
label: 'Cancel',
action: function (dialog) {
dialog.close();
}
}, {
label: 'OK',
action: function (dialog) {
window.localStorage.removeItem("access_token");
dialog.close();
location.href = "login.html";
}
}]
});
I want to disable outside click.