Contains the code for the different dialogs.
- Source:
Methods
-
(static) CloseDialog(Object)
-
Closes all dialogs specified.
Parameters:
Name Type Description ObjectjQueryObject The jQuery object that defines the dialog or any child element of it, which should be closed. - Source:
-
(static) MakeDialogWait()
-
Shows a spinner overlay on the currently visible modal dialog. Is meant for showing the user that something is about to happen, e.g. if changing a field within a dialog causes a page reload.
- Source:
-
(static) ShowAlert(Headline, Text, CloseFunction)
-
Shows an alert dialog.
Parameters:
Name Type Description HeadlineString The bold headline text. TextString The description. CloseFunctionfunction The special function which is started on closing the dialog (optional, if used also the removing of the dialog itself must be handled). - Source:
-
(static) ShowContentDialog(HTML, Title, PositionTop, PositionLeft, Modal, Buttons, AllowAutoGrow)
-
Shows a default dialog.
Parameters:
Name Type Description HTMLString The content HTML which should be shown. TitleString The title of the dialog. PositionTopNumber | String The top position the dialog is positioned initially. PositionLeftNumer | String The left position the dialog is positioned initially. ModalBoolean If defined and set to true, an overlay is shown for a modal dialog. ButtonsArray The button array. AllowAutoGrowBoolean If true, the InnerContent of the dialog can resize until the max window height is reached, if false (default), InnerContent of small dialogs does not resize over 200px. - Source:
-
(static) ShowDialog(Params)
-
The main dialog function used for all different types of dialogs.
Parameters:
Name Type Description ParamsObject The different config options. Properties
Name Type Description ModalBoolean Shows a dark background overlay behind the dialog (default: false) TypeString Alert|Search (default: undefined) Defines a special type of dialog. TitleString Defines the title of the dialog window (default: undefined). HeadlineString Defines a special headline within the dialog window (default: undefined). TextString The text which is outputtet in the dialog window (default: undefined). HTMLString Used for content dialog windows. Contains a complete HTML snippet or an jQuery object with containing HTML (default: undefined). PositionTopNumber Defines the top position of the dialog window (default: undefined). PositionBottomNumber Defines the bottom position of the dialog window (default: undefined). PositionLeftNumber | String Defines the left position of the dialog window. 'Center' centers the window (default: undefined). PositionRightNumber Defines the right position of the dialog window (default: undefined). CloseOnClickOutsideBoolean If true, clicking outside the dialog closes the dialog (default: false). CloseOnEscapeBoolean If true, pressing escape key closes the dialog (default: false). AllowAutoGrowBoolean If true, the InnerContent of the dialog can resize until the max window height is reached, if false (default), InnerContent of small dialogs does not resize over 200px. HideHeaderBoolean Hide the header by setting this to true HideFooterBoolean Hide the footer by setting this to true ButtonsObject Array of Hashes with the following properties (buttons are placed in a div "footer" of the dialog): Properties
Name Type Description LabelString Text of the button. TypeString 'Submit'|'Close' (default: none) Special type of the button - invokes a standard function. ClassString Optional class parameters for the button element. Functionfunction The function which is executed on click (optional). - Source:
-
(static) ShowWaitingDialog(Title, Text)
-
Shows a waiting dialog (with spinner icon) and customizable title and text
Parameters:
Name Type Description TitleString The title of the dialog. TextString The text of the dialog. - Source: