Пример #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)));
 }