Opened 5 years ago

Last modified 5 years 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:


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:

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 5 years ago by Fabian Dill

Just found this request:

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

Note: See TracTickets for help on using tickets.