The popup plugin has the following options:
overlayTheme
default: null
Sets the color scheme (swatch) for the popup border and background. If initially unset, and the popup is used in association with a link that has data-rel="popup" set, this attribute will be set when the popup is invoked from the link.
data-rel="popup"
$('.selector').popup({ overlayTheme: "a" });
This option is also exposed as a data attribute: data-overlay-theme="a"
data-overlay-theme="a"
theme
Sets the color scheme (swatch) for the popup contents. If initially unset, and the popup is used in association with a link that has data-rel="popup" set, this attribute will be set when the popup is invoked from the link.
$('.selector').popup({ theme: "a" });
This option is also exposed as a data attribute: data-theme="a"
data-theme="a"
initSelector
default: ":jqmData(role='popup')"
This is used to define the selectors (element types, data roles, etc.) that will automatically be initialized as popups. To change which elements are initialized, bind this option to the mobileinit event:
$( document ).bind( "mobileinit", function(){ $.mobile.popup.prototype.options.initSelector = ".mypopup"; });
shadow
default: true
Sets whether to draw a shadow around the popup. This option is also exposed as a data attribute: data-shadow="true"
data-shadow="true"
$('.selector').popup({ shadow: true });
corners
Sets whether to draw the popup with rounded corners. This option is also exposed as a data attribute: data-corners="true"
data-corners="true"
$('.selector').popup({ corners: true });
fade
Sets whether the popup's background fades as the popup appears. This option is also exposed as a data attribute: data-fade="true"
data-fade="true"
$('.selector').popup({ fade: true });
transition
default: $.mobile.defaultDialogTransition
Sets the transition to use as the popup appears. This option is also exposed as a data attribute: data-transition="pop"
data-transition="pop"
$('.selector').popup({ transition: "pop" });