$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 1. Display (default) 2. Do not display |
| autoHideDuration | number | Time until automatic close (milliseconds) |
| severity | string | Alert display specification 1. none (default) 2. error 3. warning 4. info 5. success |
| position | string | Display position specification 1. bottom-left 2. bottom-center (default) 3. bottom-right 4. top-left 5. top-center 6. top-right |
| 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, } );