Client
notify
fjsf.notify(data)Displays a notification on the screen.
Notifications are stacked automatically and removed after the specified duration.
Parameters
data
tableNotification configuration object.Supported fields:
text
stringMain notification title.description
string | nilSecondary text displayed under the title.type
string | nilPreset visual style.Supported values:
successerrorwarninginfo
duration
number | nilDisplay duration in milliseconds. Default:5000position
string | nilScreen position where notifications are stacked.Supported values:
right-upright-middleright-downcenter-upcenter-middlecenter-downleft-upleft-middleleft-down
icon
string | nilCustom FontAwesome icon class. Overrides the icon provided bytype.iconAnim
string | nilOptional icon animation class.color
string | nilCustom accent color (CSS value).size
string | nilNotification size.Allowed values:
smallmediumlarge
sounds
boolean | nilEnables sound effect when the notification appears.
iconAnim
Optional animation applied to the notification icon.
Type: string | nil
Allowed values
spinspinReversespinSlowspinPulsepulsebeatbeatFadefadeblinkSoftbouncefloatorbitshakewiggleticktiltBreathscanpolarFloat
Invalid values are ignored.
Returns
This function does not return anything.
Example
clearNotify
Removes all active notifications immediately.
Returns
This function does not return anything.
Example
Last updated