#6188 closed bug (worksforme)
Dialog: buttons option should be an array so that the developer can put the in the correct order
Reported by: | siebertm | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | |
Component: | ui.dialog | Version: | 1.8.5 |
Keywords: | dialog button | Cc: | |
Blocked by: | Blocking: |
Description
Currently, when I want to add some buttons to a dialog widget, I have no influence about the horizontal order.this is due to the unordered nature of javascript object properties used for defining the buttons.
this circumstance makes the dialog widget actually unusable for me (hence I made this a bug, not a feature ticket).
i'd propose the following solution
$('#dlg').dialog({ buttons: [{ label: "yes" // all options $.button accepts }, { label: "no" }] })
by using this syntax, we actually would have fixed #6185, too. there also should be a possibility to use the old syntax, so we dont break every app out there...
in case my proposal would be accepted, i could prepare a patch, too
cheers, Michael
Change History (3)
comment:1 follow-up: 2 Changed 12 years ago by
Resolution: | → worksforme |
---|---|
Status: | new → closed |
comment:2 Changed 12 years ago by
Replying to scott.gonzalez:
This already exists. Please see the docs.
Requires jQuery 1.4.2+ and jQuery UI 1.8.5+.
This already exists. Please see the docs.