javascript - 带有收音机和选择输入的引导箱自定义对话框
问题描述
我试图了解是否可以将输入放在自定义对话框中输入select
的右侧。例子:radio
bootbox
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
.
解决方案
推荐阅读
- java - 在 Excel 表格中的第 1 列 + 第 2 列的唯一组合之后设置空白行
- flutter - 将 Yandex Map 与 flutter_map 包一起使用时位置 lat-lng 出错
- c++ - 何时使用右值引用
- python - 如何在已安装的 Python Intrepreter 版本中选择?
- python - VS Code 上的 `Module 'cv2' has no 'cvtColor' member pylint(no-member)`
- forms - 我需要在 6 个字母后切换到手机上的纯数字键盘输入
- reactjs - 自定义/禁用 Material-UI 对话框的触控机制
- c++ - Windows 10 上的 Linphone 桌面
- sql-server - 使用存储过程设置变量而不打印输出
- r - “R CMD check”在使用“devtools::test()”时抛出警告,但允许“test()”,但需要使用完整的函数名