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

            Append(child);

            return(child);
        }
예제 #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);
        }
예제 #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);
            });
        }
예제 #6
0
        public void Configure(Cell cell, CellTag tag)
        {
            tag.AddClass(GrammarConstants.REQUIRED);

            cell.SelectionValues.Each(x =>
            {
                tag.Add("option").Attr("value", x).Text(x);
            });
        }
예제 #7
0
 public void Configure(Cell cell, CellTag tag)
 {
     tag.Attr("type", "text").AddClass(GrammarConstants.REQUIRED);
     _alterations.Each(x => x(cell, tag));
 }
예제 #8
0
 public void Configure(Cell cell, CellTag tag)
 {
     tag.Attr("type", "text").AddClass(GrammarConstants.REQUIRED);
     _alterations.Each(x => x(cell, tag));
 }