This topic demonstrates how to configure the igDialog
™ so that it can be opened and closed and how to perform these actions.
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.
The following table lists the configurable aspects of the igDialog
control. Additional details are available after the table.
Configurable aspects | Details | Properties and Methods |
---|---|---|
Configure igDialog to allow closing | The properties that needs to be configured to allow the closing of the igDialog using the control UI. | |
Hide igDialog | Method from igDialog API that allows it to be closed. | |
Show igDialog | Method from igDialog API that allows it to be opened. |
The table below demonstrates which properties need to be configured in order to be able close the igDialog
control using the control UI. Note that both of them are set with the desired values by default.
The following table maps the desired hiding feature to property settings:
In order to: | Use this property: | And set it to: |
---|---|---|
Show the close button | showCloseButton | true |
Close the igDialog using the keyboard | closeOnEscape | true |
The screenshot below demonstrates how the igDialog
looks as a result of the settings above:
As a result of the configuration from the previous paragraph, you will be able to close the dialog window using the button at the top right corner of the header. Using the Esc key is the other option that can be configured for the control, using the directions in the table below.
If you have both showCloseButton
and closeOnEscape
disabled, then you can hide the control using its API.
The following code demonstrates how to close the igDialog
using its API:
In JavaScript:
$('#igDialog).igDialog("close");
The screenshot below shows you the position of the close button:
The only possible way to show the igDialog
is using its API.
The following code demonstrates how to show the igDialog
using its API:
In JavaScript:
$('#igDialog).igDialog("open");
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.
The following samples provide additional information related to this topic:
igDialog
height, width and state.View on GitHub