我想创建一个带多行提示的bootbox。这是默认示例:
bootbox.prompt({
title: "What is your real name?",
value: "makeusabrew",
callback: function(result) {
if (result === null) {
Example.show("Prompt dismissed");
} else {
Example.show("Hi <b>"+result+"</b>");
}
}
});但是它只允许有一个内联值。我需要显示一个多行值,并有一个多行输入文本。
发布于 2015-07-15 22:08:53
我只需要添加inputType: "textarea"
bootbox.prompt({
title: "What is your real name?",
value: "makeusabrew",
inputType: "textarea",
callback: function(result) {
if (result === null) {
Example.show("Prompt dismissed");
} else {
Example.show("Hi <b>"+result+"</b>");
}
}
});它现在像一个护身符一样工作:)
https://stackoverflow.com/questions/31431090
复制相似问题