ToastNotificationJs 1.0.0
See the version list below for details.
dotnet add package ToastNotificationJs --version 1.0.0
NuGet\Install-Package ToastNotificationJs -Version 1.0.0
<PackageReference Include="ToastNotificationJs" Version="1.0.0" />
<PackageVersion Include="ToastNotificationJs" Version="1.0.0" />
<PackageReference Include="ToastNotificationJs" />
paket add ToastNotificationJs --version 1.0.0
#r "nuget: ToastNotificationJs, 1.0.0"
#:package ToastNotificationJs@1.0.0
#addin nuget:?package=ToastNotificationJs&version=1.0.0
#tool nuget:?package=ToastNotificationJs&version=1.0.0
ToastNotificationJs - README English Version
ToastNotificationJs is a lightweight and simple toast notification component that can be easily used in both ASP.NET Core and classic ASP.NET MVC projects.
Features:
- Lightweight and no dependencies on jQuery or other libraries
- Usable in any project with HTML and JavaScript
- Suitable for ASP.NET MVC 5 and ASP.NET Core
- Customizable with CSS
Installation from NuGet: Use Package Manager: Install-Package ToastNotificationJs
Or using .NET CLI: dotnet add package ToastNotificationJs
File Structure:
- For classic ASP.NET MVC: content/toastnotification/ (files added directly to the project)
- For ASP.NET Core: wwwroot/toastnotification/ (files added inside wwwroot)
Usage:
- Add the files in your layout or page:
For ASP.NET MVC classic: <link rel="stylesheet" href="~/toastnotification/ToastNotification.css" /> <script src="~/toastnotification/ToastNotification.js"></script>
For ASP.NET Core: <link rel="stylesheet" href="~/toastnotification/ToastNotification.css" /> <script src="~/toastnotification/ToastNotification.js"></script>
Note: The path ~/toastnotification/ in ASP.NET Core should be inside wwwroot.
- Use in your HTML or JavaScript:
showToast("Operation completed successfully", "success");
Toast types available:
- success
- error
- info
- warning
Developer: Created and maintained by Kaveh Norozi GitHub Repository: https://github.com/kavehnorozi/ToastNotificationJs
License: MIT License
ToastNotificationJs یک کامپوننت سبک و ساده برای نمایش اعلانهای toast است که بهراحتی در پروژههای ASP.NET Core و ASP.NET MVC کلاسیک قابل استفاده است.
ویژگیها:
- سبک و بدون وابستگی به jQuery یا کتابخانههای دیگر
- قابل استفاده در هر پروژهای با HTML و JavaScript
- مناسب برای ASP.NET MVC 5 و ASP.NET Core
- قابل سفارشیسازی با CSS
نصب از NuGet: از طریق Package Manager: Install-Package ToastNotificationJs
یا با استفاده از .NET CLI: dotnet add package ToastNotificationJs
ساختار فایلها:
- برای ASP.NET MVC کلاسیک: content/toastnotification/ (فایلها مستقیم به پروژه اضافه میشوند)
- برای ASP.NET Core: wwwroot/toastnotification/ (فایلها در wwwroot اضافه میشوند)
نحوه استفاده:
- اضافه کردن فایلها در layout یا صفحه اصلی:
برای ASP.NET MVC کلاسیک: <link rel="stylesheet" href="~/toastnotification/ToastNotification.css" /> <script src="~/toastnotification/ToastNotification.js"></script>
برای ASP.NET Core: <link rel="stylesheet" href="~/toastnotification/ToastNotification.css" /> <script src="~/toastnotification/ToastNotification.js"></script>
توجه: مسیر ~/toastnotification/ در ASP.NET Core باید داخل wwwroot باشد.
- استفاده در HTML یا JavaScript:
showToast("عملیات با موفقیت انجام شد", "success");
انواع toast موجود:
- success
- error
- info
- warning
توسعهدهنده: ساخته و نگهداری شده توسط کاوه نوروزی مخزن گیتهاب: https://github.com/kavehnorozi/ToastNotificationJs
لایسنس: MIT License
Learn more about Target Frameworks and .NET Standard.
This package has no dependencies.
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Initial release: supports both ASP.NET Core (wwwroot-based projects) and ASP.NET MVC Classic (Script and Content folders). Includes CSS animations and simple configuration.