Exemplo n.º 1
0
 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);
 }
Exemplo n.º 2
0
 public void Tab(Tab tab)
 {
     this.tabs.Add(tab);
 }
Exemplo n.º 3
0
 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);
 }