Beispiel #1
0
 public Nav(IWriter writer, string activeIdentifier, NavSettings settings = null)
     : base(writer)
 {
     _activeIdentifier = activeIdentifier;
     _settings = settings ?? new NavSettings();
     WriteOpening();
 }
Beispiel #2
0
 public Nav(ViewContext viewContext, string activeIdentifier, NavSettings settings = null)
     : base(viewContext)
 {
     _activeIdentifier = activeIdentifier;
     _settings = settings ?? new NavSettings();
     WriteOpening();
 }
Beispiel #3
0
 public Nav(IWriter writer, string activeIdentifier, NavSettings settings = null) : base(writer)
 {
     _activeIdentifier = activeIdentifier;
     _settings         = settings ?? new NavSettings();
     WriteOpening();
 }
Beispiel #4
0
 public Nav(IWriter writer, NavSettings settings = null) : base(writer)
 {
     _settings = settings ?? new NavSettings();
     WriteOpening();
 }
Beispiel #5
0
 public Nav(ViewContext viewContext, string activeIdentifier, NavSettings settings = null) : base(viewContext)
 {
     _activeIdentifier = activeIdentifier;
     _settings         = settings ?? new NavSettings();
     WriteOpening();
 }
Beispiel #6
0
 public Nav(ViewContext viewContext, NavSettings settings = null) : base(viewContext)
 {
     _settings = settings ?? new NavSettings();
     WriteOpening();
 }
 public static Nav Pills(this HtmlHelper html, NavSettings settings = null)
 {
     settings = settings ?? new NavSettings();
     settings.Style = NavStyle.Pills;
     return new Nav(html.ViewContext, settings);
 }
 public static Nav Tabs(this HtmlHelper html, string activeIdentifier, NavSettings settings = null)
 {
     settings = settings ?? new NavSettings();
     settings.Style = NavStyle.Tabs;
     return new Nav(html.ViewContext, activeIdentifier, settings);
 }
 public Nav RightNav(NavSettings settings = null)
 {
     return RightNav(null, settings);
 }
 public Nav RightNav(string activeIdentifier, NavSettings settings = null)
 {
     settings = settings ?? new NavSettings();
     settings.Style = NavStyle.Navbar;
     settings.NavbarRight = true;
     return new Nav(_writer, activeIdentifier, settings);
 }
 public Nav Nav(NavSettings settings = null)
 {
     return Nav(null, settings);
 }
 public static Nav Pills(this HtmlHelper html, NavSettings settings = null)
 {
     settings       = settings ?? new NavSettings();
     settings.Style = NavStyle.Pills;
     return(new Nav(html.ViewContext, settings));
 }
 public static Nav Tabs(this HtmlHelper html, string activeIdentifier, NavSettings settings = null)
 {
     settings       = settings ?? new NavSettings();
     settings.Style = NavStyle.Tabs;
     return(new Nav(html.ViewContext, activeIdentifier, settings));
 }
Beispiel #14
0
 public Nav(IWriter writer, NavSettings settings = null)
     : base(writer)
 {
     _settings = settings ?? new NavSettings();
     WriteOpening();
 }
Beispiel #15
0
 public Nav(ViewContext viewContext, NavSettings settings = null)
     : base(viewContext)
 {
     _settings = settings ?? new NavSettings();
     WriteOpening();
 }