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:
-
str
String- The message to show.
confirm
(
-
msg
-
callback
Launch confirm dialog. Stops execution until user accepts or cancel the dialog.
Parameters:
-
msg
String- The message to show.
-
callback
LobiBoxConfirmCallback- The callback function.
confirm
(
-
title
-
msg
-
callback
Launch question dialog. Stops execution until user accepts or cancel the dialog.
Parameters:
-
title
String- The title to show.
-
msg
String- The message to show.
-
callback
LobiBoxQuestionCallback- The callback function.
error
(
-
str
-
element
-
customTitle
-
[position]
Displays error notification.
Parameters:
-
str
String- The message to show.
-
element
JQuery- Related notification element. If null, displays generic notification.
-
customTitle
String- Notification title.
-
[position]
String optional- Dialog position.
generic
(
-
str
-
element
-
customTitle
-
[position]
-
type
Displays generic notification.
Parameters:
-
str
String- The message to show.
-
element
JQuery- Related notification element. If null, displays generic notification.
-
customTitle
String- Notification title.
-
[position]
String optional- Dialog position.
-
type
('error' | 'info' | 'success' | 'warning')- Css styles type
info
(
-
str
-
element
-
customTitle
-
[position]
Displays info notification.
Parameters:
-
str
String- The message to show.
-
element
JQuery- Related notification element. If null, displays generic notification.
-
customTitle
String- 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:
-
title
String- Dialog title
-
msg
String- The message to show.
-
cllback
String- 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:
-
str
String- The message to show.
-
element
JQuery- Related notification element. If null, displays generic notification.
-
customTitle
String- Notification title.
-
[position]
String optional- Dialog position.
warning
(
-
str
-
element
-
customTitle
-
[position]
Displays warning notification.
Parameters:
-
str
String- The message to show.
-
element
JQuery- Related notification element. If null, displays generic notification.
-
customTitle
String- Notification title.
-
[position]
String optional- Dialog position.