public static void NotyAlert(this ControllerBase controller, string message, bool isSticky = false)
        {
            var notyMessage = new NotyMessage
            {
                Type     = AlertType.Alert,
                IsSticky = isSticky,
                Message  = message
            };

            controller.AddNotyAlert(notyMessage);
        }
        public static void NotySuccess(this ControllerBase controller, string message, bool isSticky = false)
        {
            var notyMessage = new NotyMessage
            {
                Type           = AlertType.Success,
                IsSticky       = isSticky,
                Message        = message,
                CloseWith      = MessageCloseType.Click,
                Location       = MessageLocation.TopLeft,
                CloseAnimation = AnimationTypes.BounceOut,
                OpenAnimation  = AnimationTypes.Bounce,
                IsModal        = true
            };

            controller.AddNotyAlert(notyMessage);
        }
Exemple #3
0
        public static void NotySuccessModal(this ControllerBase controller, string message, bool isSticky = false, MessageLocation location = MessageLocation.center)
        {
            var notyMessage = new NotyMessage
            {
                Type           = AlertType.success,
                IsSticky       = isSticky,
                Message        = message,
                Location       = location,
                CloseAnimation = AnimationTypes.bounceIn,
                OpenAnimation  = AnimationTypes.bounceOut,
                IsModal        = true,
                CloseWith      = MessageCloseType.click
            };

            controller.AddNotyAlert(notyMessage);
        }