Ejemplo n.º 1
0
        //TODO: The styling for subnav on the bootstrap demo site is not included in Bootstrap CSS file..
        // It comes from docs.css. See this link:
        // http://stackoverflow.com/questions/11661559/bootstrap-subnav-does-not-have-the-same-style-as-on-demo-site
        // We can add it later if needed

        public SubNavBarBuilder <TModel> Begin(SubNavBar subNav)
        {
            if (subNav == null)
            {
                throw new ArgumentNullException("subNav");
            }

            return(new SubNavBarBuilder <TModel>(this.helper, subNav));
        }
Ejemplo n.º 2
0
 internal SubNavBarBuilder(HtmlHelper <TModel> htmlHelper, SubNavBar subNavBar)
     : base(htmlHelper, subNavBar)
 {
     base.textWriter.Write(@"<ul class=""nav nav-pills"">");
 }