-
Notifications
You must be signed in to change notification settings - Fork 5.3k
Dialog: Add option to put the dialog title in a header element #2275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 11 commits
14dc459
c22ba5b
564b793
6f8307d
8f8c2a1
a277562
9238fc0
d4aa8a0
b2f3e72
7b9ea13
478e434
140fa73
f46ff12
6ffab2e
5652776
c70786d
8f583cb
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -81,6 +81,7 @@ $.widget( "ui.dialog", { | |
resizable: true, | ||
show: null, | ||
title: null, | ||
uiDialogTitleTagName: "<span>", | ||
width: 300, | ||
|
||
// Callbacks | ||
|
@@ -437,7 +438,8 @@ $.widget( "ui.dialog", { | |
} | ||
} ); | ||
|
||
uiDialogTitle = $( "<span>" ).uniqueId().prependTo( this.uiDialogTitlebar ); | ||
uiDialogTitle = $( this.options.uiDialogTitleTagName ) | ||
|
||
.uniqueId().prependTo( this.uiDialogTitlebar ); | ||
this._addClass( uiDialogTitle, "ui-dialog-title" ); | ||
this._title( uiDialogTitle ); | ||
|
||
|
Uh oh!
There was an error while loading. Please reload this page.