Skip to content

Commit f47238d

Browse files
authored
format readme table (#886)
1 parent 185d1dd commit f47238d

File tree

1 file changed

+25
-25
lines changed

1 file changed

+25
-25
lines changed

README.md

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -135,23 +135,23 @@ There are **individual options** and **global options**.
135135

136136
Passed to `ToastrService.success/error/warning/info/show()`
137137

138-
| Option | Type | Default | Description |
139-
| ----------------- | ------------------------------ | ------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------- |
140-
| toastComponent | Component | Toast | Angular component that will be used |
141-
| closeButton | boolean | false | Show close button |
142-
| timeOut | number | 5000 | Time to live in milliseconds |
143-
| extendedTimeOut | number | 1000 | Time to close after a user hovers over toast |
144-
| disableTimeOut | boolean \| | 'timeOut' \| 'extendedTimeOut' | false | Disable both timeOut and extendedTimeOut when set to `true`. Allows specifying which timeOut to disable, either: `timeOut` or `extendedTimeOut` |
145-
| easing | string | 'ease-in' | Toast component easing |
146-
| easeTime | string \| number | 300 | Time spent easing |
147-
| enableHtml | boolean | false | Allow html in message |
148-
| progressBar | boolean | false | Show progress bar |
149-
| progressAnimation | `'decreasing' \| 'increasing'` | 'decreasing' | Changes the animation of the progress bar. |
150-
| toastClass | string | 'ngx-toastr' | Class on toast |
151-
| positionClass | string | 'toast-top-right' | Class on toast container |
152-
| titleClass | string | 'toast-title' | Class inside toast on title |
153-
| messageClass | string | 'toast-message' | Class inside toast on message |
154-
| tapToDismiss | boolean | true | Close on click |
138+
| Option | Type | Default | Description
139+
| ----------------- | ------------------------------ | ------------------------------ | ------------------------------------------------- |
140+
| toastComponent | Component | Toast | Angular component that will be used |
141+
| closeButton | boolean | false | Show close button |
142+
| timeOut | number | 5000 | Time to live in milliseconds |
143+
| extendedTimeOut | number | 1000 | Time to close after a user hovers over toast |
144+
| disableTimeOut | `boolean \| 'timeOut' \| 'extendedTimeOut'` | false | Disable both timeOut and extendedTimeOut when set to `true`. Allows specifying which timeOut to disable, either: `timeOut` or `extendedTimeOut` |
145+
| easing | string | 'ease-in' | Toast component easing |
146+
| easeTime | string \| number | 300 | Time spent easing |
147+
| enableHtml | boolean | false | Allow html in message |
148+
| progressBar | boolean | false | Show progress bar |
149+
| progressAnimation | `'decreasing' \| 'increasing'` | 'decreasing' | Changes the animation of the progress bar. |
150+
| toastClass | string | 'ngx-toastr' | Class on toast |
151+
| positionClass | string | 'toast-top-right' | Class on toast container |
152+
| titleClass | string | 'toast-title' | Class inside toast on title |
153+
| messageClass | string | 'toast-message' | Class inside toast on message |
154+
| tapToDismiss | boolean | true | Close on click |
155155
| onActivateTick | boolean | false | Fires `changeDetectorRef.detectChanges()` when activated. Helps show toast from asynchronous events outside of Angular's change detection |
156156

157157
#### Setting Individual Options
@@ -172,15 +172,15 @@ options to affect all toasts. In addition, global options include the following
172172
options:
173173

174174
| Option | Type | Default | Description |
175-
| ----------------------- | ------- | ---------------------------------- | ------------------------------------------------------------------------------------------------------------- |
176-
| maxOpened | number | 0 | Max toasts opened. Toasts will be queued. 0 is unlimited |
177-
| autoDismiss | boolean | false | Dismiss current toast when max is reached |
178-
| iconClasses | object | [see below](#iconclasses-defaults) | Classes used on toastr service methods |
179-
| newestOnTop | boolean | true | New toast placement |
180-
| preventDuplicates | boolean | false | Block duplicate messages |
175+
| ----------------------- | ------- | ---------------------------------- | ------------------------------------------------------------------ |
176+
| maxOpened | number | 0 | Max toasts opened. Toasts will be queued. 0 is unlimited |
177+
| autoDismiss | boolean | false | Dismiss current toast when max is reached |
178+
| iconClasses | object | [see below](#iconclasses-defaults) | Classes used on toastr service methods |
179+
| newestOnTop | boolean | true | New toast placement |
180+
| preventDuplicates | boolean | false | Block duplicate messages |
181181
| countDuplicates | boolean | false | Displays a duplicates counter (preventDuplicates must be true). Toast must have a title and duplicate message |
182-
| resetTimeoutOnDuplicate | boolean | false | Reset toast timeout on duplicate (preventDuplicates must be true) |
183-
| includeTitleDuplicates | boolean | false | Include the title of a toast when checking for duplicates (by default only message is compared) |
182+
| resetTimeoutOnDuplicate | boolean | false | Reset toast timeout on duplicate (preventDuplicates must be true) |
183+
| includeTitleDuplicates | boolean | false | Include the title of a toast when checking for duplicates (by default only message is compared) |
184184

185185
##### iconClasses defaults
186186

0 commit comments

Comments
 (0)