Toastr
Toastr decription.
Demo
Show Toastr Random Toastr
Required Imports
import { LibToastrStackModule } from 'nextsapien-component-lib';
Properties

Type | Name | Description | Data type | Required | Default | Demo
--- | --- | --- | --- | --- | --- | ---
Input | position | Sets the position of toastr | ToastrPosition | false | right-top |
Input | config.title | Sets the title of toastr | string | true | - |
Input | config.description.type | Sets the description type of toastr | ToastrDescription | true | - |
Input | config.description.content | Sets the description of toastr | string | true | - |
Input | config.severity | Sets the severity of toastr | ToastrSeverity | true | - |
Input | config.loading | Hide/Show the loading bar of toastr | boolean | false | false |
Input | config.markCheck | Hide/Show the check-mark of toastr | boolean | false | false |
Input | config.hideClose | Hide/Show the close button of toastr | boolean | false | false |
Input | config.life | Sets the life of toastr in milliseconds | int | false | 2000 |
Input | config.token | Sets the token of toastr for identification to replace same toastrs | string | true | - |
Input | config.button.name | Sets the button name of toastr's button | string | false | - |
Input | config.button.onClick | Invokes the following function on toastr's button click | Function | false | - |
Input | config | The configuration object for the toaster, which defines its behavior, icon, life duration, and appearance.
Output | closeClick | Emits an event when the close button is clicked on the toaster.
Output | checkboxChange | Emits an event when the checkbox in the toaster is toggled.
Public | toasterLife | The duration for which the toaster stays visible, defined by the `config` or defaulted to 2000ms.
Public | show | A boolean flag indicating whether the toaster is currently visible or not.
Public | checkbox | A boolean indicating whether the toaster's checkbox is checked.
Public | toasterIcon | The name of the icon to display in the toaster, based on its severity.

Example usage
`{{ libToastrStackCode }}`

This is toastr-template example