Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ npm install --save toastr

## Breaking Changes

####Animation Changes
#### Animation Changes
The following animations options have been deprecated and should be replaced:

- Replace `options.fadeIn` with `options.showDuration`
Expand Down Expand Up @@ -88,7 +88,7 @@ toastr.success('We do have the Kapua suite available.', 'Turtle Bay Resort', {ti
```

### Escape HTML characters
In case you want to escape HTML charaters in title and message
In case you want to escape HTML characters in title and message

toastr.options.escapeHtml = true;

Expand Down Expand Up @@ -131,7 +131,7 @@ toastr.options.onCloseClick = function() { console.log('close button clicked');
### Animation Options
Toastr will supply default animations, so you do not have to provide any of these settings. However you have the option to override the animations if you like.

####Easings
#### Easings
Optionally override the animation easing to show or hide the toasts. Default is swing. swing and linear are built into jQuery.
```js
toastr.options.showEasing = 'swing';
Expand All @@ -146,29 +146,29 @@ toastr.options.hideEasing = 'easeInBack';
toastr.options.closeEasing = 'easeInBack';
```

####Animation Method
#### Animation Method
Use the jQuery show/hide method of your choice. These default to fadeIn/fadeOut. The methods fadeIn/fadeOut, slideDown/slideUp, and show/hide are built into jQuery.
```js
toastr.options.showMethod = 'slideDown';
toastr.options.hideMethod = 'slideUp';
toastr.options.closeMethod = 'slideUp';
```

###Prevent Duplicates
### Prevent Duplicates
Rather than having identical toasts stack, set the preventDuplicates property to true. Duplicates are matched to the previous toast based on their message content.
```js
toastr.options.preventDuplicates = true;
```

###Timeouts
### Timeouts
Control how toastr interacts with users by setting timeouts appropriately. Timeouts can be disabled by setting them to 0.
```js
toastr.options.timeOut = 30; // How long the toast will display without user interaction
toastr.options.extendedTimeOut = 60; // How long the toast will display after a user hovers over it
```


###Progress Bar
### Progress Bar
Visually indicate how long before a toast expires.
```js
toastr.options.progressBar = true;
Expand Down
Loading