allow passing classes to buttons
This commit is contained in:
parent
715846626e
commit
64cc13a8d3
|
@ -103,6 +103,9 @@
|
|||
}
|
||||
$.each(value, function(idx, val) {
|
||||
var $button = $('<button>').text(val.text);
|
||||
if (val.classes) {
|
||||
$button.addClass(val.classes);
|
||||
}
|
||||
if(val.defaultButton) {
|
||||
$button.addClass('primary');
|
||||
self.$defaultButton = $button;
|
||||
|
|
Loading…
Reference in New Issue