public virtual void WriteBody(TextWriter writer, Tab first, TypeContext context) { using (TabContainer.Surround(writer, new HtmlTag("div", context.Compose(this.Id)).Class("tab-pane fade").Class(this == first ? "in active" : null))) this.Body.WriteTo(writer); }
public void Tab(Tab tab) { this.tabs.Add(tab); }
public virtual void WriteHeader(TextWriter writer, Tab first, TypeContext context) { using (TabContainer.Surround(writer, new HtmlTag("li").Class(this == first ? "active" : null))) using (TabContainer.Surround(writer, new HtmlTag("a").Attr("href", "#" + context.Compose(this.Id)).Attr("data-toggle", "tab").Attr("title", this.ToolTip))) this.Title.WriteTo(writer); }