The dialog plugin has the following options:
closeBtn
default: "left"
Sets the position of the dialog close button in the header (left or right) or prevents the framework from adding a close button (none).
This option is also exposed as a data attribute: data-close-btn.
data-close-btn
$( ".selector" ).dialog({ closeBtn: "none" });
closeBtnText
default: "Close"
Customizes the text of the close button which is helpful for translating this into different languages. This is displayed as an icon-only button by default so the text isn't visible on-screen, but is read by screen readers so this is an important accessibility feature.
This option is also exposed as a data attribute: data-close-btn-text.
data-close-btn-text
$( ".selector" ).dialog({ closeBtnText: "Fermer" });
corners
default: true
Sets whether to draw the dialo with rounded corners.
This option is also exposed as a data attribute: data-corners="false".
data-corners="false"
$( ".selector" ).dialog({ corners: false });
initSelector
default: ":jqmData(role='dialog')"
This is used to define the selectors (element types, data roles, etc.) that will automatically be initialized as dialogs. To change which elements are initialized, bind this option to the mobileinit event:
$( document ).on( "mobileinit", function(){ $.mobile.dialog.prototype.options.initSelector = ".mydialog"; });
overlayTheme
default: "a"
Dialogs appear to be floating above an overlay layer. This overlay adopts the swatch "a" content color by default, but the data-overlay-theme attribute can be added to the page wrapper to set the overlay to any swatch letter.
$( ".selector" ).dialog({ overlayTheme: "e" });
This option is also exposed as a data attribute: data-overlay-theme="e"
data-overlay-theme="e"