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

            var builder = new ComboBoxHtmlBuilder(comboBox);

            IHtmlNode rootTag = builder.Build();

            rootTag.AppendTo(li);

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

            var builder = new ComboBoxHtmlBuilder(comboBox);

            IHtmlNode rootTag = builder.Build();

            rootTag.AppendTo(li);

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

            var builder = new ComboBoxHtmlBuilder(comboBox);

            IHtmlNode rootTag = builder.Build();

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

            rootTag.AppendTo(li);

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

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