$fn.message(parameters)
Displays a message on the screen using the snackbar component.
Arguments
| Name | Type | Description |
|---|---|---|
| parameters | object | Object containing message information |
parameters Details
| Property | Type | Description |
|---|---|---|
| message | string | Message string to display |
| close | boolean | Close button for the message
|
| autoHideDuration | number | Time until automatic close (milliseconds) |
| severity | string | Alert display specification
|
| position | string | Display position specification
|
| transitionDuration | number | Time for snackbar display and fade out (milliseconds) |
Return Value
None
Sample
$fn.message( { message: "Hello world.", close: false, autoHideDuration: 1000, severity: "info", transitionDuration: 300, } );