Skip to content

howjerry/ToastrNotify

Repository files navigation

ToastrNotify

Use toastr

Installation

Install-Package CHC.ToastrNotify

Usage

    <!--toastr-->
    <link href="~/plugins/toastr.js/toastr.min.css" rel="stylesheet" />
    <!-- jQuery -->
    <script src="~/plugins/jquery/jquery.min.js"></script>
    <!--toastr.js-->
    <script src="~/plugins/toastr.js/toastr.min.js"></script>
    <!--toastr set-->
    <script src="~/plugins/toastr.js/app.js"></script>

    @Html.Notify()
        [HttpGet]
        public ActionResult Index(string returnUrl)
        {
            CHC.ToastrNotify.NotifyHelper.Append(CHC.ToastrNotify.NotifyType.Info, "Message","Title");
            return View();
        }

Options

examples

About

使用套件 toastr.js ,擴充 HtmlHelper

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages