/// <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); }
/// <summary> /// 获取标签生成器 /// </summary> protected override TagBuilder GetTagBuilder() { var builder = new TableBodyBuilder(); var rowBuilder = new TableRowBuilder(); builder.AppendContent(rowBuilder); Config(rowBuilder); return(builder); }
/// <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); }
/// <summary> /// 添加内容 /// </summary> protected void AddBody(TagBuilder tableBuilder) { if (_config.AutoCreateRow == false) { return; } var tableBodyBuilder = new TableBodyBuilder(); AddBody(tableBodyBuilder); tableBuilder.AppendContent(tableBodyBuilder); }
/// <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); }
/// <summary> /// 添加内容 /// </summary> protected override void AddBody(TableBodyBuilder tableBodyBuilder) { tableBodyBuilder.AppendContent(CreateContainerBuilder()); }