Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// 获取标签生成器
        /// </summary>
        protected override TagBuilder GetTagBuilder()
        {
            var builder    = new TableBodyBuilder();
            var rowBuilder = new TableRowBuilder();

            builder.AppendContent(rowBuilder);
            Config(rowBuilder);
            return(builder);
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 4
0
        /// <summary>
        /// 添加内容
        /// </summary>
        protected void AddBody(TagBuilder tableBuilder)
        {
            if (_config.AutoCreateRow == false)
            {
                return;
            }
            var tableBodyBuilder = new TableBodyBuilder();

            AddBody(tableBodyBuilder);
            tableBuilder.AppendContent(tableBodyBuilder);
        }
Ejemplo n.º 5
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);
        }
Ejemplo n.º 6
0
 /// <summary>
 /// 添加内容
 /// </summary>
 protected override void AddBody(TableBodyBuilder tableBodyBuilder)
 {
     tableBodyBuilder.AppendContent(CreateContainerBuilder());
 }