Inheritance: HtmlTags.HtmlTag
Beispiel #1
0
        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;
        }
Beispiel #3
0
        public CellTag AddCell(Cell cell, string tagName)
        {
            var child = new CellTag(cell, tagName);

            Append(child);

            return(child);
        }
Beispiel #4
0
        // 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.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));
 }
Beispiel #8
0
 public void Configure(Cell cell, CellTag tag)
 {
     tag.Attr("type", "text").AddClass(GrammarConstants.REQUIRED);
     _alterations.Each(x => x(cell, tag));
 }