How to add extra button to jQuery dialog title bar
I want to add extra buttons to jQuery Dialog Title Bar. I want to add minimum 5 Buttons to jQuery Dialog Title Bar. Maximum "N".
Buttons like as listed below:
- Help Button
- Maximize Button
- Minimize Button
- About Button
$( ".dialog" ).dialog({
autoOpen: false,
buttons: [
{
text: "Minimize",
icon: "ui-icon-minimize",
click: function( e ) {
//function
}
},
{
text: "Maximize",
icon: "ui-icon-maximize",
click: function( e ) {
//function
}
}
]
});
To add more buttons, just add'em in the
buttonsarraysee an example HERE
--- EDIT ---
now i see what are you trying to do.. i think there is no clean way to do that, so i suggest this:
https://jsfiddle.net/myh5d2sz/1/