vex确认对话框,取消操作为默认值

Sti*_*gen 3 jquery confirm dialog

我正在尝试使用https://github.com/HubSpot/vex模式脚本进行确认对话.此时,如果出现确认对话框,则"ok"按钮被选为默认值.有谁知道我怎么能改变这个?我希望取消按钮是默认的,这样任何人只需输入,没有任何反应.

感谢您的回答.

最好的问候托马斯

Tuy*_*ius 7

设置数组中按钮的文本

vex.dialog.open({          
    message: 'Are you absolutely sure you want to destroy the alien planet?', 
    overlayClosesOnClick: false, // set false to click out
    callback: function (value) {
        console.log(value);
    },
    buttons: [
        $.extend({}, vex.dialog.buttons.YES, { text: 'Your Button For Yesy' }),
        $.extend({}, vex.dialog.buttons.NO, { text: 'Your Button For No' })
    ]
 });
Run Code Online (Sandbox Code Playgroud)