Opened 14 months ago

Last modified 14 months ago

#15246 new feature

UI Dialog - option to add icon-buttons in the titlebar.

Reported by: Fabian Dill Owned by:
Priority: minor Milestone: none
Component: ui.dialog Version: 1.12.1
Keywords: Cc:
Blocked by: Blocking:

Description

Something that quite a few users seem to have a use for is the ability to add more icons, styled like the close button into the title bar of the ui dialog.

Some examples from stackoverflow:

https://stackoverflow.com/questions/15928159/jquery-ui-dialog-add-a-help-icon-in-the-titlebar

https://stackoverflow.com/questions/37073547/how-to-add-extra-buttons-to-jquery-dialog-title-bar

https://stackoverflow.com/questions/4103964/icons-in-jquery-ui-dialog-title

There's plenty more, but these will suffice to make my point: All these solutions look bad. The added icon(s) look nothing like the close button, especially once you try to use jquery themes and/or icons.

The request is the following; similar to the buttons [] option, add a title-buttons[] option, with the close button in it as default. The array can be set to an empty array to remove the close button, a functionality that already exists, or more buttons can be added, by adding in a [iconname, function] pair.

Change History (1)

comment:1 Changed 14 months ago by Fabian Dill

Just found this request: https://bugs.jqueryui.com/ticket/15121

seems there might be a chance to merge the two into one functionality.

Note: See TracTickets for help on using tickets.