Beispiel #1
0
        /// <summary>
        /// 添加内容
        /// </summary>
        protected virtual void AddBody(TableBodyBuilder tableBodyBuilder)
        {
            var rowBuilder = new TableRowBuilder();

            rowBuilder.NgFor($"let row of {_config.Id}.data");
            rowBuilder.AppendContent(_config.Content);
            tableBodyBuilder.AppendContent(rowBuilder);
        }
Beispiel #2
0
        /// <summary>
        /// 获取标签生成器
        /// </summary>
        protected override TagBuilder GetTagBuilder()
        {
            var builder    = new TableBodyBuilder();
            var rowBuilder = new TableRowBuilder();

            builder.AppendContent(rowBuilder);
            Config(rowBuilder);
            return(builder);
        }
Beispiel #3
0
        /// <summary>
        /// 添加内容
        /// </summary>
        protected virtual void AddBody(TableBodyBuilder tableBodyBuilder)
        {
            var rowBuilder = new RowBuilder();

            rowBuilder.ConfigIterationVar(_config.Id);
            AddEditRow(rowBuilder);
            AddRowEvents(rowBuilder);
            rowBuilder.AppendContent(_config.Content);
            tableBodyBuilder.AppendContent(rowBuilder);
        }
Beispiel #4
0
        /// <summary>
        /// 添加行
        /// </summary>
        protected void AddRow(TagBuilder tableBuilder)
        {
            if (_config.AutoCreateRow == false)
            {
                return;
            }
            var tableBodyBuilder = new TableBodyBuilder();
            var rowBuilder       = new TableRowBuilder();

            rowBuilder.NgFor($"let row of {_config.Id}.data");
            rowBuilder.AppendContent(_config.Content);
            tableBodyBuilder.AppendContent(rowBuilder);
            tableBuilder.AppendContent(tableBodyBuilder);
        }
Beispiel #5
0
 /// <summary>
 /// 添加内容
 /// </summary>
 protected override void AddBody(TableBodyBuilder tableBodyBuilder)
 {
     tableBodyBuilder.AppendContent(CreateContainerBuilder());
 }