public bsNavItem AddNavItem(string id_dom, string header, string href) { bsNavItem navItem = new bsNavItem(id_dom) { Header = header, Href = href }; ChildsNodes.Add(navItem); return(navItem); }
public bsNavItem AddNav(string SetNavHeader, string SetNavId, string SetNavCachedContent) { bsNavItem navItem = new bsNavItem(SetNavId) { Header = SetNavHeader, Href = "#" + SetNavId, ID = SetNavId + "-tab" }; navItem.SetAttribute(new Dictionary <string, string>() { { "data-toggle", this.IsTabsStyle ? "tab" : "pill" }, { "role", "tab" }, { "aria-controls", SetNavId } }); ChildsNodes.Add(navItem); CacheContents.Add(SetNavId, SetNavCachedContent); return((bsNavItem)ChildsNodes[ChildsNodes.Count - 1]); }