Inheritance: BootstrapExtensions.Common.HtmlContainer
Exemplo n.º 1
0
 /// <summary>
 /// Navigation links
 /// </summary>
 /// <param name="links">An unordered list of links</param>
 public void Links(Action<HtmlListBuilder> links)
 {
     var list = new HtmlList(links, string.IsNullOrEmpty(_activeLink)
         ? (object)new { @class = "nav" }
         : new { @class = "nav", data_activelink = _activeLink });
     _navbar.InnerHtml += list.ToHtmlString();
 }
Exemplo n.º 2
0
 public HtmlListBuilder(HtmlList list)
 {
     _list = list;
 }
 public HtmlListBuilder(HtmlList list)
 {
     _list = list;
 }