public void Down_Button_should_render_link_with_classes()
        {
            IHtmlNode tag = renderer.DownButtonTag();

            Assert.Equal("#", tag.Attribute("href"));
            Assert.Equal(UIPrimitives.Link + " " + UIPrimitives.Icon + " t-arrow-down", tag.Attribute("class"));
            Assert.Equal("a", tag.TagName);
        }
Example #2
0
        protected override void WriteHtml(System.Web.UI.HtmlTextWriter writer)
        {
            Guard.IsNotNull(writer, "writer");

            ITextBoxBaseHtmlBuilder renderer = rendererFactory.Create(this);

            IHtmlNode rootTag = renderer.Build("t-numerictextbox");

            rootTag.Children.Add(renderer.InputTag());

            if (Spinners)
            {
                rootTag.Children.Add(renderer.UpButtonTag());
                rootTag.Children.Add(renderer.DownButtonTag());
            }

            rootTag.WriteTo(writer);
            base.WriteHtml(writer);
        }