/// <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); } }
/// <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); } }