Пример #1
0
 public static MvcHtmlString ImagePanel(this HtmlHelper html, string title, string imageSrc = "", EPanelImageSize imageSize = EPanelImageSize.Default, EPanelImageLayout imageLayout = EPanelImageLayout.Cover)
 {
     return(html.Partial("Controls/_ImagePanel", new PanelOptions
     {
         Title = title,
         ImageSrc = string.IsNullOrEmpty(imageSrc) ? string.Empty : new UrlHelper(html.ViewContext.RequestContext).Content(imageSrc),
         ImageSize = imageSize,
         ImageLayout = imageLayout
     }));
 }
Пример #2
0
 public static MvcHtmlString CollapsiblePanel(this HtmlHelper html, string title, string body, bool expanded = false, string footer = "", string id = "", string imageSrc = "", EPanelImageSize imageSize = EPanelImageSize.Default, EPanelImageLayout imageLayout = EPanelImageLayout.Cover)
 {
     return(html.Partial("Controls/_CollapsiblePanel", new CollapsiblePanelOptions
     {
         Id = id,
         Title = title,
         Body = body,
         Expaded = expanded,
         Footer = footer,
         ImageSrc = string.IsNullOrEmpty(imageSrc) ? string.Empty : new UrlHelper(html.ViewContext.RequestContext).Content(imageSrc),
         ImageLayout = imageLayout,
         ImageSize = imageSize
     }));
 }