Zebra_Dialog icon indicating copy to clipboard operation
Zebra_Dialog copied to clipboard

button support setting background color

Open lyk082401 opened this issue 3 years ago • 1 comments

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
});

lyk082401 avatar Dec 20 '21 07:12 lyk082401

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

stefangabos avatar Dec 20 '21 07:12 stefangabos