I don't know if this is the right place to post this but i liked your plugin, i find it stylish and all but i have an issue with the onClick parameter of the button element in the buttons array.
Here:
buttons: [{
text: 'OK',
val: 'ok',
eKey: true,
addClass: 'btn-light-blue btn-square',
onClick: function(argument) {
console.log(argument);
alert('Look in console!');
}
}, ]
Is the function supposed to be triggered after a click on the button ? If so, why any action i put in the body of the function doesn't work (even the alert in the example) ? And what's this "argument" parameter of the function ? Is it mandatory ? What value is it supposed to contain ? I've carefully read the readme file but it still isn't clear enough.
Since the main purpose of such modals is to perform an action when a button is clicked, i find this very disturbing and i would be very grateful if you could explain to me what i'm missing here.
I don't know if this is the right place to post this but i liked your plugin, i find it stylish and all but i have an issue with the onClick parameter of the button element in the buttons array.
Here:
Is the function supposed to be triggered after a click on the button ? If so, why any action i put in the body of the function doesn't work (even the alert in the example) ? And what's this "argument" parameter of the function ? Is it mandatory ? What value is it supposed to contain ? I've carefully read the readme file but it still isn't clear enough.
Since the main purpose of such modals is to perform an action when a button is clicked, i find this very disturbing and i would be very grateful if you could explain to me what i'm missing here.