Beispiel #1
0
 /// <summary>
 /// Placeholder for column filter
 /// </summary>
 /// <param name="columnName">Column name</param>
 /// <returns>Placeholder template entry</returns>
 public static MvcHtmlString Filter(this LayoutTemplateRegion t, string columnName)
 {
     return(MvcHtmlString.Create(string.Format("{{{{Plugin \"filter-{0}\"}}}}", columnName)));
 }
Beispiel #2
0
 /// <summary>
 /// Placeholder for column header
 /// </summary>
 /// <param name="columnName">Column name</param>
 /// <returns>Placeholder template entry</returns>
 public static MvcHtmlString Header(this LayoutTemplateRegion t, string columnName)
 {
     return(MvcHtmlString.Create(string.Format("{{{{Header \"{0}\"}}}}", columnName)));
 }
Beispiel #3
0
 /// <summary>
 /// Placeholder for column filters
 /// </summary>
 public static MvcHtmlString Filters(this LayoutTemplateRegion t)
 {
     return(_filters);
 }
Beispiel #4
0
 /// <summary>
 /// Placeholder for table headers
 /// </summary>
 public static MvcHtmlString Headers(this LayoutTemplateRegion t)
 {
     return(_headers);
 }
Beispiel #5
0
 /// <summary>
 /// Placeholder for table body (cells and rows)
 /// </summary>
 public static MvcHtmlString Body(this LayoutTemplateRegion t)
 {
     return(_body);
 }
Beispiel #6
0
 /// <summary>
 /// Placeholder for plugins at specific position
 /// </summary>
 /// <param name="position">Plugin position</param>
 /// <returns>Placeholder template entry</returns>
 public static MvcHtmlString Plugins(this LayoutTemplateRegion t, string position = null)
 {
     return(MvcHtmlString.Create(string.Format("{{{{{{Plugins \"{0}\"}}}}}}", position)));
 }