jquery - vex confirm dialog, cancel-action as default -
I'm trying to use a modal script for a confirmation dialog, for now, if the confirmation dialog box appears , Then "OK" - the button is selected as the default. Does anyone know how can I change it? I want the cancel button to be the default so that anyone gets hit, just nothing happens.
Thank you for your reply.
Best regards to Thomas
Set the text of the buttons in your array < / P>
vex.dialog.open ({message: 'Do you want to completely destroy the alien planet?', OverlayCloseOption: wrong, click incorrectly to // click outside the callback Do: function (value) {console.log (value);}, button: [$ .extend ({}, Vex.dialog.buttons.YES, {text: 'your button for yesy}}), $ .extend ({}, Vex.dialog.buttons.NO, {text: 'for not your button'})]});
Comments
Post a Comment