예제 #1
0
 public static IGridWithOptions <T> WithClass <T>(this IGridWithOptions <T> grid, string htmlID) where T : class
 {
     return(grid.Attributes(@class => htmlID));
 }
예제 #2
0
 /// <summary>
 /// Defines additional attributes for a grid.
 /// </summary>
 /// <returns></returns>
 public static IGridWithOptions <T> Attributes <T>(this IGridWithOptions <T> grid, params Func <object, object>[] hash)
     where T : class
 {
     return(grid.Attributes(new Hash(hash)));
 }