public Panel(ViewContext viewContext, PanelAppearanceType appearance = null, string clientId = null) { ViewContext = viewContext; SetAppearance(appearance); var open = string.Format("<div class=\"{0}\" id=\"{1}\">",CssClass, clientId); ViewContext.Writer.Write(open); }
public _Panel SetAppearance(PanelAppearanceType appearance) { Appearance = appearance ?? PanelAppearanceType.Default; return this; }
public _Panel(string title = null, PanelAppearanceType appearance = null, string clientId = null) : base("_Panel", clientId) { SetTitle(title) .SetAppearance(appearance); }
public static Panel UxPanel(this HtmlHelper htmlHelper, PanelAppearanceType appearance = null, string clientId = null) { return new Panel(htmlHelper.ViewContext, appearance, clientId); }