首页 > 解决方案 > 带有收音机和选择输入的引导箱自定义对话框

问题描述

我试图了解是否可以将输入放在自定义对话框中输入select的右侧。例子:radiobootbox

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);
    }
});

这将显示三个无线电项目。我想放在右边,比如说“选择二” a select

inputType: 'select',
inputOptions: [
{
    text: 'Choose one...',
    value: '',
},
{
    text: 'Choice One',
    value: '1',
}]

但我不明白这是否可能与bootbox.

标签: javascriptbootbox

解决方案


推荐阅读