예제 #1
0
 /// <summary>
 /// 添加标题列
 /// </summary>
 private void AddHeadColumns(TableRowBuilder rowBuilder)
 {
     foreach (var column in _config.Columns)
     {
         var headColumnBuilder = new TableHeadColumnBuilder();
         headColumnBuilder.Title(column.Title);
         headColumnBuilder.AddSort(column.GetSortKey());
         rowBuilder.AppendContent(headColumnBuilder);
     }
 }
예제 #2
0
파일: TableRender.cs 프로젝트: miaochw/Util
 /// <summary>
 /// 添加标题列
 /// </summary>
 private void AddHeadColumns(TableRowBuilder rowBuilder)
 {
     foreach (var column in _config.Columns)
     {
         var headColumnBuilder = new TableHeadColumnBuilder();
         if (column.IsCheckbox)
         {
             headColumnBuilder.AddCheckBox(_config.Id);
         }
         else
         {
             headColumnBuilder.Title(column.Title);
             headColumnBuilder.AddSort(column.GetSortKey());
         }
         rowBuilder.AppendContent(headColumnBuilder);
     }
 }