Module: Xebec
- Defined in:
- lib/xebec.rb,
lib/xebec/html5.rb,
lib/xebec/nav_bar.rb,
lib/xebec/nav_item.rb,
lib/xebec/has_nav_bars.rb,
lib/xebec/nav_bar_helper.rb,
lib/xebec/nav_bar_renderer.rb,
lib/xebec/controller_support.rb,
lib/xebec/stylesheet_generator.rb,
lib/xebec/web_app_theme_renderer.rb,
lib/xebec/title_enhanced_nav_bar_renderer.rb
Defined Under Namespace
Modules: ControllerSupport, HTML5, HasNavBars, NavBarHelper Classes: NavBar, NavBarRenderer, NavItem, StylesheetGenerator, TitleEnhancedNavBarRenderer, WebAppThemeRenderer
Class Attribute Summary collapse
-
.current_is_link ⇒ Object
Chooses the behavior of NavBarRenderers when dealing with the current item.
-
.currently_selected_nav_item_class ⇒ Object
The CSS class that is added to navigation items that are “active.” Defaults to “current.”.
-
.renderer_class ⇒ Object
The navigation bar renderer class.
Class Method Summary collapse
Class Attribute Details
.current_is_link ⇒ Object
Chooses the behavior of NavBarRenderers when dealing with the current item. By default, they are rendered in a span tag; however, if this flag is set to true, they will be rendered as links (as they would be if they weren’t the current item). Even with this flag set, the current item will still get the CSS class set by currently_selected_nav_item_class.
This setting can be overridden on a per-navbar basis.
28 29 30 |
# File 'lib/xebec.rb', line 28 def current_is_link @current_is_link end |
.currently_selected_nav_item_class ⇒ Object
The CSS class that is added to navigation items that are “active.” Defaults to “current.”
9 10 11 |
# File 'lib/xebec.rb', line 9 def currently_selected_nav_item_class @currently_selected_nav_item_class end |
.renderer_class ⇒ Object
The navigation bar renderer class. Defaults to Xebec::NavBarRenderer
15 16 17 |
# File 'lib/xebec.rb', line 15 def renderer_class @renderer_class end |