Skip to main content

Search and Top Navigation

#6188 closed bug (worksforme)

Opened October 15, 2010 08:57AM UTC

Closed October 15, 2010 01:42PM UTC

Last modified October 11, 2012 09:15PM UTC

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



Attachments (0)
Change History (3)

Changed October 15, 2010 01:42PM UTC by scottgonzalez comment:1

resolution: → worksforme
status: newclosed

This already exists. Please see the docs.

Changed October 15, 2010 01:43PM UTC by scottgonzalez comment:2

Replying to [comment:1 scott.gonzalez]:

This already exists. Please see the docs.

Requires jQuery 1.4.2+ and jQuery UI 1.8.5+.

Changed October 11, 2012 09:15PM UTC by scottgonzalez comment:3

milestone: TBD

Milestone TBD deleted