Opened 12 years ago

Closed 12 years ago

Last modified 10 years ago

#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:


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

    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 Changed 12 years ago by Scott González

Resolution: worksforme
Status: newclosed

This already exists. Please see the docs.

comment:2 in reply to:  1 Changed 12 years ago by Scott González

Replying to scott.gonzalez:

This already exists. Please see the docs.

Requires jQuery 1.4.2+ and jQuery UI 1.8.5+.

comment:3 Changed 10 years ago by Scott González

Milestone: TBD

Milestone TBD deleted

Note: See TracTickets for help on using tickets.