Example #1
0
        /// <summary>
        /// 添加标签生成器
        /// </summary>
        private void AddSpanBuilder(TableHeadColumnBuilder headColumnBuilder, ColumnInfo column)
        {
            var spanBuilder = new SpanBuilder();

            spanBuilder.AddAttribute("*ngIf", $"!{GetWrapperId()}.showCheckbox");
            spanBuilder.SetContent(column.Title);
            headColumnBuilder.AppendContent(spanBuilder);
        }
Example #2
0
        /// <summary>
        /// 添加标题复选框生成器
        /// </summary>
        private void AddCheckBoxBuilder(TableHeadColumnBuilder headColumnBuilder, ColumnInfo column)
        {
            var checkBoxBuilder = new MasterCheckBoxBuilder(GetWrapperId(), column.Title);

            headColumnBuilder.AppendContent(checkBoxBuilder);
        }