Esempio n. 1
0
 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);
 }
Esempio n. 2
0
 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);
 }
Esempio n. 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);
 }