Event which is raised before state of dialog was changed.
Return false in order to cancel action.
Function takes arguments "evt" and "ui".
Use evt to obtain browser event. That parameter can be null if state was modified from codes.
Use ui.owner to obtain reference to igDialog.
Use ui.button to obtain name of button, which triggered event. Note: if state was modified from codes, then "button" is undefined.
Use ui.oldState to obtain old state of dialog, which can be one of following: "opened", "minimized", "maximized", "closed".
Use ui.oldPinned to obtain boolean value of old pin state of dialog.
Use ui.action to obtain name of action. That can be one of the following:
"open" - request to open dialog
"close" - request to close dialog
"minimize" - request to minimize dialog
"maximize" - request to maximize dialog
"restore" - request to restore dialog from minimized or maximized state
"pin" - request to pin dialog
"unpin" - request to unpin dialog
Target Platforms: Windows 8.1, Windows 8.1, Windows 8, Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2