public static CellTag AddCell(this ICellBuilder builder, GrammarTag grammar, Cell cell) { CellTag tag = grammar.AddCell(cell, builder.TagName); builder.Configure(cell, tag); return(tag); }
// TODO -- test public CellTag BuildTag(Cell cell) { ICellBuilder builder = _builders.First(x => x.CanBuild(cell)); var tag = new CellTag(cell, builder.TagName); builder.Configure(cell, tag); return tag; }
public CellTag AddCell(Cell cell, string tagName) { var child = new CellTag(cell, tagName); Append(child); return(child); }
// TODO -- test public CellTag BuildTag(Cell cell) { ICellBuilder builder = _builders.First(x => x.CanBuild(cell)); var tag = new CellTag(cell, builder.TagName); builder.Configure(cell, tag); return(tag); }
public void Configure(Cell cell, CellTag tag) { tag.AddClass(GrammarConstants.REQUIRED); cell.SelectionValues.Each(x => { tag.Add("option").Attr("value", x).Text(x); }); }
public void Configure(Cell cell, CellTag tag) { tag.Attr("type", "text").AddClass(GrammarConstants.REQUIRED); _alterations.Each(x => x(cell, tag)); }