Opened 7 years ago

Last modified 7 years ago

#15121 new feature

Add ability to add a jQuery built-in ui-icon to the left side of the Titlebar (with the titlebar text after it).

Reported by: Jeff-Schafer Owned by:
Priority: minor Milestone: 1.13.0
Component: ui.dialog Version: 1.12.1
Keywords: Cc:
Blocked by: Blocking:

Description

I would like to request an easy way to add a jQuery built-in ui-icon to the left side of the Titlebar (with the titlebar text after it).

The only way I found that displays an icon in the titleber is the following (from a button click):

$('.ui-dialog-titlebar').append('<span class="ui-icon ui-icon-alert"></span>');

But, this puts the icon right next to the Close button on the titlebar, &, if user clicks on the button that opens this dialog box again, it adds an additional icon (as expected, since it is .append).

I would like to have the icon displayed on the left side of the titlebar the first time the dialog box is open, and no additional icons added each time the dialog box is re-opened (when the page is not reloaded).

Change History (1)

comment:1 Changed 7 years ago by Scott González

Milestone: none1.13.0

PR: https://github.com/jquery/jquery-ui/pull/1791

Can't land until 1.13.0 since it's a new feature, but I'd like to get feedback now to ensure the team is on board with adding this option.

Note: See TracTickets for help on using tickets.