Toastr api
NbToastrService
Methods
| Name | Description |
| control() | parameters: message: returns:any, title: any, config: PartialNbToastRefShows control toast with message, title and user config. |
| danger() | parameters: message: returns:any, title: any, config: PartialNbToastRefShows danger toast with message, title and user config. |
| default() | parameters: message: returns:any, title: any, config: PartialNbToastRefShows default toast with message, title and user config. |
| info() | parameters: message: returns:any, title: any, config: PartialNbToastRefShows info toast with message, title and user config. |
| primary() | parameters: message: returns:any, title: any, config: PartialNbToastRefShows primary toast with message, title and user config. |
| show() | parameters: message: returns:any, title: any, userConfig: PartialNbToastRefShows toast with message, title and user config. |
| success() | parameters: message: returns:any, title: any, config: PartialNbToastRefShows success toast with message, title and user config. |
| warning() | parameters: message: returns:any, title: any, config: PartialNbToastRefShows warning toast with message, title and user config. |
NbToastrConfig
Properties
| Name | Type | Description |
| destroyByClick | boolean | Destroy by click means you can hide the toast by clicking it. |
| duplicatesBehaviour | NbDuplicateToastBehaviour | Determines the how to treat duplicates. |
| duration | number | Duration is timeout between toast appears and disappears. |
| hasIcon | boolean | Determines render icon or not. |
| icon | Icon name or icon config object that can be provided to render custom icon. | |
| position | NbGlobalPosition | Determines where on the screen toast have to be rendered. |
| preventDuplicates | boolean | If preventDuplicates is true then the toast with the same title, message and status will not be rendered.
Find duplicates behaviour determined by |
| status | NbComponentOrCustomStatus | Status chooses color scheme for the toast. |
| toastClass | string | Class to be applied to the toast. |
Need some help or found an issue?
Ask on Stack Overflow with tag `nebular` or post an issue on GitHub.
