Exemplo n.º 1
0
        /// <summary>
        /// 添加表头复选框
        /// </summary>
        private void AddHeadCheckbox(TableRowBuilder rowBuilder)
        {
            var headColumnBuilder = new TableHeadColumnBuilder();

            headColumnBuilder.AddCheckBox(_config.Id);
            rowBuilder.AppendContent(headColumnBuilder);
        }
Exemplo n.º 2
0
        /// <summary>
        /// 添加表头复选框
        /// </summary>
        private void AddHeadCheckbox(TableRowBuilder rowBuilder)
        {
            if (_config.AutoCreateHeadCheckbox == false)
            {
                return;
            }
            var headColumnBuilder = new TableHeadColumnBuilder();

            headColumnBuilder.AddCheckBox(_config.Id);
            rowBuilder.AppendContent(headColumnBuilder);
        }
Exemplo n.º 3
0
 /// <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);
     }
 }