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); }
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 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); }