I have been experimenting with the functionality of in my project. I started off by using their example code to test if it works.
Following the guidelines provided, I have integrated the latest versions of bootstrap, jquery, and bootstrap js, along with bootboxjs. The code snippet I am testing is as follows:
bootbox.prompt({
title: "This is a prompt with a set of radio inputs!",
message: '<p>Please select an option below:</p>',
inputType: 'radio',
inputOptions: [
{
text: 'Choice One',
value: '1',
},
{
text: 'Choice Two',
value: '2',
},
{
text: 'Choice Three',
value: '3',
}
],
callback: function (result) {
console.log(result);
}
});
Upon running this code, I encountered the following error:
Uncaught Error: invalid prompt type
https://i.sstatic.net/G829e.png
Despite facing this issue, I find this library quite impressive and would like to implement it in my project. However, I seem to be stuck at the moment. Any suggestions?