Skip to content

Commit db68e4d

Browse files
authored
Update README.md
1 parent cddd656 commit db68e4d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ ToastNotification is a Minimal & Elegant Toast Notification Package for ASP.NET
1111
- 🐣 Simple and Customizable. Create your own custom toast with your favorite color and icons with ease!
1212
- 👴🏽 Works with TempData internally.
1313
- 📱 Currently Supports 2 Popuplar JS Library.
14+
- 📱 Supports AJAX / XHR out of the box.
1415

1516
More Features Coming Soon.
1617
> Not Compatible with Blazor SDK. Intended only for ASP.NET Core Web Applications.
@@ -46,6 +47,13 @@ services.AddNotyf(config=> { config.DurationInSeconds = 10;config.IsDismissable
4647
> Available Positions are TopRight,BottomRight,BottomLeft,TopLeft,TopCenter,BottomCenter.
4748
Set the isDismissible bool to false, to remove the close icon from your toasts! Pretty handy.
4849

50+
### From v1.1.0 - AJAX / XHR is fully supported
51+
52+
To enable toast notification while working with AJAX Requests, you will have to add the middleware into the Service Container. Open up Startup.cs and add the following line of code under the Configure method.
53+
54+
```csharp
55+
app.UseNotyf();
56+
```
4957

5058
> More settings will be added in the upcoming releases
5159

0 commit comments

Comments
 (0)