diff --git a/README.md b/README.md index 0e2b9606..19ad231e 100644 --- a/README.md +++ b/README.md @@ -131,24 +131,24 @@ There are **individual options** and **global options**. Passed to `ToastrService.success/error/warning/info/show()` -| Option | Type | Default | Description | -| ----------------- | ------------------------------ | ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | -| toastComponent | Component | Toast | Angular component that will be used | -| closeButton | boolean | false | Show close button | -| timeOut | number | 5000 | Time to live in milliseconds | -| extendedTimeOut | number | 1000 | Time to close after a user hovers over toast | -| disableTimeOut | boolean | false | Disable both timeOut and extendedTimeOut | -| easing | string | 'ease-in' | Toast component easing | -| easeTime | string \| number | 300 | Time spent easing | -| enableHtml | boolean | false | Allow html in message | -| progressBar | boolean | false | Show progress bar | -| progressAnimation | `'decreasing' \| 'increasing'` | 'decreasing' | Changes the animation of the progress bar. | -| toastClass | string | 'ngx-toastr' | Class on toast | -| positionClass | string | 'toast-top-right' | Class on toast container | -| titleClass | string | 'toast-title' | Class inside toast on title | -| messageClass | string | 'toast-message' | Class inside toast on message | -| tapToDismiss | boolean | true | Close on click | -| onActivateTick | boolean | false | Fires `changeDetectorRef.detectChanges()` when activated. Helps show toast from asynchronous events outside of Angular's change detection | +| Option | Type | Default | Description | +| ----------------- | ------------------------------ | ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- | +| toastComponent | Component | Toast | Angular component that will be used | +| closeButton | boolean | false | Show close button | +| timeOut | number | 5000 | Time to live in milliseconds | +| extendedTimeOut | number | 1000 | Time to close after a user hovers over toast | +| disableTimeOut | boolean \| | 'timeOut' \| 'extendedTimeOut' | false | Disable both timeOut and extendedTimeOut when set to `true`. Allows specifying which timeOut to disable, either: `timeOut` or `extendedTimeOut` | +| easing | string | 'ease-in' | Toast component easing | +| easeTime | string \| number | 300 | Time spent easing | +| enableHtml | boolean | false | Allow html in message | +| progressBar | boolean | false | Show progress bar | +| progressAnimation | `'decreasing' \| 'increasing'` | 'decreasing' | Changes the animation of the progress bar. | +| toastClass | string | 'ngx-toastr' | Class on toast | +| positionClass | string | 'toast-top-right' | Class on toast container | +| titleClass | string | 'toast-title' | Class inside toast on title | +| messageClass | string | 'toast-message' | Class inside toast on message | +| tapToDismiss | boolean | true | Close on click | +| onActivateTick | boolean | false | Fires `changeDetectorRef.detectChanges()` when activated. Helps show toast from asynchronous events outside of Angular's change detection | #### Setting Individual Options diff --git a/src/app/home/home.component.html b/src/app/home/home.component.html index 49347c5c..e9e6f1a8 100644 --- a/src/app/home/home.component.html +++ b/src/app/home/home.component.html @@ -93,7 +93,8 @@ - 0 never expires @@ -101,15 +102,40 @@ - 0 never expires -