Пример #1
0
 public Alert SetAppearance(AlertAppearanceType appearance)
 {
     Appearance = appearance ?? AlertAppearanceType.Info;
     return this;
 }
Пример #2
0
 public static IDisposable UxAlert(this HtmlHelper htmlHelper, AlertAppearanceType appearance = null, bool dismissable = false, string clientId = null)
 {
     var alert = new Alert(appearance, dismissable, clientId);
     return RenderUxDispoableWebControl(htmlHelper, alert);
 }
Пример #3
0
 public Alert(AlertAppearanceType appearance = null, bool dismissable = false, string clientId = null)
     : base("_Alert", clientId)
 {
     SetDismissable(dismissable)
         .SetAppearance(appearance);
 }