protected override IHtmlNode BuildCore()
        {
            var li = new HtmlElement("li")
                    .AddClass("t-editor-dropdown");

            var builder = new DropDownListHtmlBuilder(dropDown);

            IHtmlNode rootTag = builder.Build();

            rootTag.AppendTo(li);

            return li;
        }
        protected override IHtmlNode BuildCore()
        {
            var li = new HtmlElement("li")
                     .AddClass("t-editor-dropdown");

            var builder = new DropDownListHtmlBuilder(dropDown);

            IHtmlNode rootTag = builder.Build();

            rootTag.AppendTo(li);

            return(li);
        }
        protected override IHtmlNode BuildCore()
        {
            var li = new HtmlTag("li")
                    .AddClass("t-editor-dropdown");

            var builder = new DropDownListHtmlBuilder(dropDown);

            IHtmlNode rootTag = builder.Build();

            builder.InnerContentTag().AppendTo(rootTag);
            builder.HiddenInputTag().AppendTo(rootTag);

            rootTag.AppendTo(li);

            return li;
        }
Exemple #4
0
        public void Build_should_output_start_tag()
        {
            IHtmlNode tag = renderer.Build();

            Assert.Equal("div", tag.TagName);
        }