Skip to content

$fn.message(parameters)

Displays a message on the screen using the snackbar component.

Arguments

NameTypeDescription
parametersobjectObject containing message information

parameters Details

PropertyTypeDescription
messagestringMessage string to display
closebooleanClose button for the message
1. Display (default)
2. Do not display
autoHideDurationnumberTime until automatic close (milliseconds)
severitystringAlert display specification
1. none (default)
2. error
3. warning
4. info
5. success
positionstringDisplay position specification
1. bottom-left
2. bottom-center (default)
3. bottom-right
4. top-left
5. top-center
6. top-right
transitionDurationnumberTime for snackbar display and fade out (milliseconds)

Return Value

None

Sample

$fn.message(
{
message: "Hello world.",
close: false,
autoHideDuration: 1000,
severity: "info",
transitionDuration: 300,
}
);