Zebra_Dialog
Zebra_Dialog copied to clipboard
button support setting background color
Like:
new $.Zebra_Dialog("Message", {
type: "information",
title: "Title",
buttons: [
{
caption: "Right", background: "green"
},
{
caption: "Error", background: "red"
},
{
caption: "Nothing", background: "yellow"
}
],
center_buttons: true
});
Use the custom_class
property like so
buttons: [{
caption: 'My button 1',
custom_class: 'foo',
default_confirmation: true,
callback: function() { // code }
},{
caption: 'My button 2',
custom_class: 'bar',
callback: function() { // code }
}]
Read more about the other properties in the configuration options, look for buttons