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