Пример #1
0
 public Nav(IWriter writer, string activeIdentifier, NavSettings settings = null)
     : base(writer)
 {
     _activeIdentifier = activeIdentifier;
     _settings = settings ?? new NavSettings();
     WriteOpening();
 }
Пример #2
0
 public Nav(ViewContext viewContext, string activeIdentifier, NavSettings settings = null)
     : base(viewContext)
 {
     _activeIdentifier = activeIdentifier;
     _settings = settings ?? new NavSettings();
     WriteOpening();
 }
Пример #3
0
 public Nav(IWriter writer, string activeIdentifier, NavSettings settings = null) : base(writer)
 {
     _activeIdentifier = activeIdentifier;
     _settings         = settings ?? new NavSettings();
     WriteOpening();
 }
Пример #4
0
 public Nav(IWriter writer, NavSettings settings = null) : base(writer)
 {
     _settings = settings ?? new NavSettings();
     WriteOpening();
 }
Пример #5
0
 public Nav(ViewContext viewContext, string activeIdentifier, NavSettings settings = null) : base(viewContext)
 {
     _activeIdentifier = activeIdentifier;
     _settings         = settings ?? new NavSettings();
     WriteOpening();
 }
Пример #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);
 }
Пример #9
0
 public Nav RightNav(NavSettings settings = null)
 {
     return RightNav(null, settings);
 }
Пример #10
0
 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);
 }
Пример #11
0
 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));
 }
Пример #14
0
 public Nav(IWriter writer, NavSettings settings = null)
     : base(writer)
 {
     _settings = settings ?? new NavSettings();
     WriteOpening();
 }
Пример #15
0
 public Nav(ViewContext viewContext, NavSettings settings = null)
     : base(viewContext)
 {
     _settings = settings ?? new NavSettings();
     WriteOpening();
 }