public TableTemplateTag(Table table, ICellBuilderLibrary builders) { Style("display", "none"); AddClass(GrammarConstants.TEMPLATES); AddHeaderRow(x => { x.Header(" ").AddClass("command"); table.Cells.Each(cell => { x.Append(new CellHeaderTag(cell)); }); }); AddBodyRow(x => { x.Cell().AddClass("command").Add<DeleteIconTag>().AddClass("remover"); table.Cells.Each(cell => x.Cell().AddSafeClassName(cell.Key).Append(builders.BuildTag(cell))); }); }
public TableTemplateTag(Table table, ICellBuilderLibrary builders) { Style("display", "none"); AddClass(GrammarConstants.TEMPLATES); AddHeaderRow(x => { x.Header(" ").AddClass("command"); table.Cells.Each(cell => { x.Child(new CellHeaderTag(cell)); }); }); AddBodyRow(x => { x.Cell().AddClass("command").Child(new LinkTag("remove", "#", "remover")); table.Cells.Each(cell => { x.Cell().AddClass(cell.Key).Child(builders.BuildTag(cell)); }); }); }
public TableTemplateTag(Table table, ICellBuilderLibrary builders) { Style("display", "none"); AddClass(GrammarConstants.TEMPLATES); AddHeaderRow(x => { x.Header(" ").AddClass("command"); table.Cells.Each(cell => { x.Append(new CellHeaderTag(cell)); }); }); AddBodyRow(x => { x.Cell().AddClass("command").Add <DeleteIconTag>().AddClass("remover"); table.Cells.Each(cell => { x.Cell().AddClass(cell.Key).Append(builders.BuildTag(cell)); }); }); }
public SentenceWriter(GrammarTag grammar, ICellBuilderLibrary builders) { _grammar = grammar; _builders = builders; }