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
  • Display (default)
  • Do not display
autoHideDurationnumberTime until automatic close (milliseconds)
severitystringAlert display specification
  • none (default)
  • error
  • warning
  • info
  • success
positionstringDisplay position specification
  • bottom-left
  • bottom-center (default)
  • bottom-right
  • top-left
  • top-center
  • 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,
}
);