Search and Top Navigation
#7598 closed bug (duplicate)
Opened August 02, 2011 10:39PM UTC
Closed August 02, 2011 11:13PM UTC
Last modified August 02, 2011 11:13PM UTC
Add the ability to specify options for the buttons.
| Reported by: | David.Sullivan | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | 1.9.0 |
| Component: | ui.dialog | Version: | 1.8.14 |
| Keywords: | Cc: | ||
| Blocked by: | Blocking: |
Description
It would be nice of .dialog({buttons: {}) accepted a buttonOptions for each of the buttons.
Example
$('#myDialog').dialog({
buttons: [{
text: 'Test',
butttonOptions: { //Any valid .button options should be able to be passed here.
icons: {
primary: 'ui-icon-disk'
}
}}]
});
I see where the change to .dialog need to be done and will be submitting a pull request.
Submited pull request.
https://github.com/jquery/jquery-ui/pull/416
Demo: http://jsbin.com/ebowan/9/edit