Default settings
new AZModalDialog(
{
azModalDialogId: "",
azModalDialogTitle: "",
azModalDialogText: "",
azModalDialogiFrameURL: "",
azModalDialogWidth: 450,
azModalDialogHeight: 300,
azModalDialogNoParentScroll: false,
azModalDialogBackground: true,
azModalDialogModal: true,
azModalDialogTitlebar: true,
azModalDialogTitlebarClose: true,
azModalDialogResizable: false,
azModalDialogDraggable: true,
azModalDialogCloseOnEscape: true,
azModalDialogPosition: false,
azModalDialogPositionOf: {},
azModalDialogPositionMy: "left bottom-30",
azModalDialogPositionAt: "left top",
azModalDialogBackgroundColor: "",
azModalDialogColor: "",
azModalDialogTitlebarBackgroundColor: "",
azModalDialogTitlebarColor: ""
});
Init AZModalDialog
There are two ways to initiate the
AZModalDialog. The way you choose is important for further use of the function.
1. new AZModalDialog();
The function is initiated but you do not assign the function to a variable. This means that you can not directly interact with the function.
2. var AZModalDialog = new AZModalDialog();
The function is initiated and assigned to a variable. This means you can use the variable in relation to further interaction with the function.
Whatever approach you choose, you can use the following three features (Events):
azModalDialogBeforeOpen
azModalDialogAfterOpen
azModalDialogAfterClose
Other examples:
Modal Dialog Close
Modal Dialog Title