Beispiel #1
0
        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);
        }
Beispiel #2
0
 public _Panel SetAppearance(PanelAppearanceType appearance)
 {
     Appearance = appearance ?? PanelAppearanceType.Default;
     return this;
 }
Beispiel #3
0
 public _Panel(string title = null, PanelAppearanceType appearance = null, string clientId = null)
     : base("_Panel", clientId)
 {
     SetTitle(title)
         .SetAppearance(appearance);
 }
Beispiel #4
0
 public static Panel UxPanel(this HtmlHelper htmlHelper, PanelAppearanceType appearance = null, string clientId = null)
 {
     return new Panel(htmlHelper.ViewContext, appearance, clientId);
 }