Skip to main content
Version: v11.6.2

Login Dialog


login_struct

Overview

Dragging and dropping a dialog creates a view containing the dialog. The view can be selected from the Page Structure or from the tabs given at the bottom. The display of the dialog box at runtime is usually associated with the onClick event of a Button widget. You can also trigger the dialog by calling methods from JavaScript.

Login Dialog

Login Dialog is a popup window that displays Login page content and can be dismissed by the user. Especially used to refresh the membership or for additional confirmation. The events that can be set include onSuccess, onError and onClose.

dialog_login

Script Access

Dialog widget in your project can be accessed by associating the open and close properties of the dialog with an event of any other widget. The dialog can be accessed through scripting by adding DialogService to the page controller and adding the code for open and close as shown below, here we are displaying an alert dialog on click of a button: Click event of the button should trigger the following JavaScript code:

Page.button3Click = function($event, widget) {
Page.Widgets.logindialog1.open();
}

For hiding dialog:

/* function called on button1 click */
Page.button1Click = function($event, widget) {
Page.Widgets.logindialog1.close();
};

Properties & Events


Login Dialog Properties

PropertyDescription
TitleSet the title of the widget.
NameThe name is a unique identifier for the widget.
Layout
WidthThe width of your widget can be specified in px or % (i.e 50px, 75%).
ModalThis property, if set true, adds a backdrop for the dialog restricting the closure of the dialog when the user clicks outside of the dialog. The default value is false, which allows close of dialog on click outside.
Behavior
AnimationThis property controls the animation of an element. The animation is based on the CSS classes and works only in the run mode.
KeyboardThis property if set true allows closing of dialog on ESC keypress. The default is true.
Graphics
Icon ClassThis property defines the class of the icon that is applied to the button.
Icon WidthOptional property; but you will need this if you are using the button's iconUrl. Please enter the width of your icon. WARNING: It's best to specify size in pixels, not percent.
Icon HeightOptional property; but you will need this if you are using the button's iconUrl. Please enter the height of your icon. WARNING: It's best to specify size in pixels, not percent.
Icon MarginOptional property; only has meaning if you specify the button's iconUrl. Values should all have "px" next to them. Use this to adjust the space between the icon and the button text.

Login Dialog Events

EventDescription
Callback Events
On submitThis event handler is called whenever a submit event is triggered.
On closeThis event handler is called whenever a close event is triggered.
On openThis widget gives a pop-up window. It can be used to give a warning message to the user. For example, you are about to leave this page.
On successThis event handler is called whenever a success event is triggered.
On errorThis event handler is called whenever an error event is triggered.