NToastNotify Versions Save

Asp.Net Core abstraction for server side rendered toast notifications using toast.js or noty.js. Supports AJAX calls as well.

5.0.8

5 years ago

Updated to 2.1 and use Razor SDK.

  • Fixes #41

5.0.7

6 years ago

Added DisableAjaxToasts in NToastNotifyOption class which if set to true will disable Ajax Toasts. Handy when you might have restrictions in reading/writing custom request/response headers as ajax toasts use custom headers for message transportation which I agree is not a very nice way to do it.

  • Fix #39

Cheers !

5.0.3

6 years ago

Updated nuget packages and samples. Minor Fixes.

5.0.0

6 years ago

This release adds support to Noty.js and makes it easy to extend and add support for other third party toast libraries.

  • Fix #27
  • Fix #30

Please go through the ReadMe file again and samples to see the new usage and changes as I could not keep up with all the changes. Apologies.

4.0.4

6 years ago

Trying to fix #24 .

4.0.0

6 years ago

You can now send toast notifications on AJAX request.

  • Full support for traditional XMLHTTPRequest based AJAX calls #8.
  • Partial support for AJAX calls made using the browser native fetch requests.
    • To show a toast notification on fetch response. You have to handle the response and use JavaScript to show the message. for e.g.
fetch('/Home/Ajax').then(function(response){
	var messages = nToastNotify.toastr.fetchGetMessagesFromResponse(response);
	nToastNotify.toastr.showToasts(messages)
})
  • Minor preparations to support multiple third party library #13 .

Breaking Changes

  • ToastEnums changed to Enums
  • AddToastNotify() method now needs to be used on IMvcBuilder interface. For e.g.
services.AddMvc().AddNToastNotify(new ToastOption()
            {
                ProgressBar = false,
                PositionClass = ToastPositions.BottomCenter
            }, new NToastNotifyOption()
            {
                SuccessMessage = "Overwritten default success message"
            }); ;

Also need to add as middleware in the Configure method.

            app.UseNToastNotify();

3.0.3

6 years ago
  • Added support for Feature Folders project structure. See the sample application.
  • Minor fixes

3.0.2

6 years ago

Fixed PeekMessages not peeking.

3.0.0

6 years ago

Added support to netstandard2.0

2.0.3

6 years ago
  • Bug Fix: Causing a NullPointerException when the ToastMessages were null.