$fn.message(parameters)
The snack bar component displays a message on the screen.
Arguments
Name | Type | Description |
---|---|---|
parameters | object | Object indicating message content |
parameters details
Property | Type | Description |
---|---|---|
message | string | Message string to be displayed |
close | boolean | Button to close the message |
autoHideDuration | number | Time to auto-close (ms) |
severity | string | Specify alert display |
position | string | Specify display position |
transitionDuration | number | Snack bar display and fade-out time (milliseconds) |
Return value
None
Sample
$fn.message( { message: "Hello world.", close: false, autoHideDuration: 1000, severity: "info", transitionDuration: 300, } );