コード例 #1
0
        public void BeginAccordion(Accordion accordion, TextWriter writer)
        {
            accordion.EnsureClass("accordion");

            var builder = new FluentTagBuilder("div", TagRenderMode.StartTag)
                          .MergeAttributes(accordion.HtmlAttributes);

            string tag = builder.ToString();

            writer.Write(tag);
        }
コード例 #2
0
        public void BeginAccordion(Accordion accordion, TextWriter writer)
        {
            accordion.EnsureClass("panel-group");
            accordion.EnsureHtmlAttribute("role", "tablist");
            accordion.EnsureHtmlAttribute("aria-multiselectable", "true");

            var builder = new FluentTagBuilder("div", TagRenderMode.StartTag)
                          .MergeAttributes(accordion.HtmlAttributes);

            string tag = builder.ToString();

            writer.Write(tag);
        }