Skip to main content

Search and Top Navigation

#15121 new feature ()

Opened December 24, 2016 09:38PM UTC

Last modified January 25, 2017 08:39PM UTC

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).

Attachments (0)
Change History (1)

Changed January 25, 2017 08:39PM UTC by scottgonzalez comment:1

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.