From db68e4d4daac4d2d00d21b8a5aab1f5385639bb1 Mon Sep 17 00:00:00 2001 From: Mukesh Murugan <31455818+iammukeshm@users.noreply.github.com> Date: Sat, 12 Dec 2020 02:46:01 +0530 Subject: [PATCH] Update README.md --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index 2dd0ce2..7972eec 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,7 @@ ToastNotification is a Minimal & Elegant Toast Notification Package for ASP.NET - 🐣 Simple and Customizable. Create your own custom toast with your favorite color and icons with ease! - 👴🏽 Works with TempData internally. - 📱 Currently Supports 2 Popuplar JS Library. +- 📱 Supports AJAX / XHR out of the box. More Features Coming Soon. > 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 > Available Positions are TopRight,BottomRight,BottomLeft,TopLeft,TopCenter,BottomCenter. Set the isDismissible bool to false, to remove the close icon from your toasts! Pretty handy. +### From v1.1.0 - AJAX / XHR is fully supported + +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. + +```csharp +app.UseNotyf(); +``` > More settings will be added in the upcoming releases