flexygo.culture.eses.flexygo.msg Class
Library to launch notifications on screen.
Methods
alert
(
-
str
Launch an alert dialog. Stops execution until user accepts the msg.
Parameters:
-
strString- The message to show.
confirm
(
-
msg -
callback
Launch confirm dialog. Stops execution until user accepts or cancel the dialog.
Parameters:
-
msgString- The message to show.
-
callbackLobiBoxConfirmCallback- The callback function.
confirm
(
-
title -
msg -
callback
Launch question dialog. Stops execution until user accepts or cancel the dialog.
Parameters:
-
titleString- The title to show.
-
msgString- The message to show.
-
callbackLobiBoxQuestionCallback- The callback function.
error
(
-
str -
element -
customTitle -
[position]
Displays error notification.
Parameters:
-
strString- The message to show.
-
elementJQuery- Related notification element. If null, displays generic notification.
-
customTitleString- Notification title.
-
[position]String optional- Dialog position.
generic
(
-
str -
element -
customTitle -
[position] -
type
Displays generic notification.
Parameters:
-
strString- The message to show.
-
elementJQuery- Related notification element. If null, displays generic notification.
-
customTitleString- Notification title.
-
[position]String optional- Dialog position.
-
type('error' | 'info' | 'success' | 'warning')- Css styles type
info
(
-
str -
element -
customTitle -
[position]
Displays info notification.
Parameters:
-
strString- The message to show.
-
elementJQuery- Related notification element. If null, displays generic notification.
-
customTitleString- Notification title.
-
[position]String optional- Dialog position.
prompt
(
-
title -
msg -
cllback -
[placeholder] -
[lines=1] -
[type=text]
Launch prompt dialog. Don't block process execution.
Parameters:
-
titleString- Dialog title
-
msgString- The message to show.
-
cllbackString- Callback function after dialog execution (only if Ok button clicked). Recives one string parameter with user input.
-
[placeholder]String optional- Input field placeholder text.
-
[lines=1]String optional- number of lines for multiline items.
-
[type=text]('error' | 'info' | 'success' | 'warning') optional- Css styles type
success
(
-
str -
element -
customTitle -
[position]
Displays success notification.
Parameters:
-
strString- The message to show.
-
elementJQuery- Related notification element. If null, displays generic notification.
-
customTitleString- Notification title.
-
[position]String optional- Dialog position.
warning
(
-
str -
element -
customTitle -
[position]
Displays warning notification.
Parameters:
-
strString- The message to show.
-
elementJQuery- Related notification element. If null, displays generic notification.
-
customTitleString- Notification title.
-
[position]String optional- Dialog position.