This topic demonstrates how to animate the igDialog
™ when it is either opened or closed.
The following topics are prerequisites to understanding this topic:
igDialog Overview: The topic introduces the user to the igDialog
control’s main features.
Adding igDialog: This topic demonstrates how to add the igDialog
control to a web page.
This topic contains the following sections:
The properties that need to be configured to animate igDialog
upon closing and opening are:
For a better user interface experience you can create animations when the dialog is opening and closing. The value for any of the animation properties can be any parameter from the jQuery UI show()
/hide()
methods. For more information about the parameters, please review jQuery documents.
The following table maps the desired animation features to property settings:
In order to: | Use this property: | And set it to: |
---|---|---|
Animate igDialog on opening | openAnimation | “slide” |
Animate igDialog on closing | closeAnimation | “explode” |
The code below demonstrates how set the igDialog
animations in jQuery:
In JavaScript:
$("#dialog").igDialog({
openAnimation: “slide”
closeAnimation: "explode"
});
The code below demonstrates how set the animations for the Ignite UI for MVC Dialog:
In C#:
<%= Html.Infragistics()
.Dialog()
.ContentID("dialog")
.OpenAnimation("slide")
.CloseAnimation("explode")
.Render()
%>
The following topics provide additional information related to this topic:
igDialog Overview: The topic introduces the user to the igDialog
control’s main features.
Adding igDialog: This topic demonstrates how to add the igDialog
control to a web page.
View on GitHub