public Alert SetAppearance(AlertAppearanceType appearance) { Appearance = appearance ?? AlertAppearanceType.Info; return this; }
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); }
public Alert(AlertAppearanceType appearance = null, bool dismissable = false, string clientId = null) : base("_Alert", clientId) { SetDismissable(dismissable) .SetAppearance(appearance); }