public static IHtmlContent DragHeaderCell <T>(this IHtmlHelper <T> helper, string tableName, string width = null, object cellAttributes = null) { var Provider = helper.GetService <ITablesHelper>(); CellWriter writer = Provider.DragHeaderCell <T>(helper, tableName, width, cellAttributes); return(writer.WriteHeaderCell()); }
public static IHtmlContent HeaderCell <T, TValue>(this IHtmlHelper <T> helper, Expression <Func <T, TValue> > exp, string size = null, object cellAttributes = null, bool?sorting = null) { var Provider = helper.GetService <ITablesHelper>(); sorting = sorting ?? helper.GetTheme().SortingInTables; CellWriter mod = Provider.HeaderCell(helper, exp, size, cellAttributes, sorting.Value); return(mod.WriteHeaderCell()); }
public static IHtmlContent HeaderCell(this IHtmlHelper helper, string text, string size = null, bool isColumn = true, object cellAttributes = null, bool?sorting = null) { var Provider = helper.GetService <ITablesHelper>(); sorting = sorting ?? helper.GetTheme().SortingInTables; CellWriter mod = Provider.HeaderCell(helper, text, size, isColumn, cellAttributes, sorting.Value); return(mod.WriteHeaderCell()); }