-
Notifications
You must be signed in to change notification settings - Fork 504
Open
Description
jquery-confirm version:
v3.x.x
I'm submitting a ...
[x ] feature request
Current behavior:
you can't set custom attributes on buttons.
Expected behavior:
set custom attributes on buttons
Related code:
save: {
text: 'Save',
btnClass: 'btn-secondary btn-lg mx-3',
attrs: {
'x-data': '{}',
'x-show': '$store.basket.isSettled'
},
action: function () {
}
},
}
insert any relevant code here
// get custom attributes
let attrs = that.buttons[key].attrs
if (attrs) {
$.each(attrs, function(key, value) {
button_element.attr(key, value);
});
}
Metadata
Metadata
Assignees
Labels
No labels