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

            Append(child);

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