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

Class Method Summary collapse

Class Attribute Details

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_classObject

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_classObject

The navigation bar renderer class. Defaults to Xebec::NavBarRenderer

See Also:



15
16
17
# File 'lib/xebec.rb', line 15

def renderer_class
  @renderer_class
end

Class Method Details

.html5_for_all_browsers!Object



3
4
5
# File 'lib/xebec/html5.rb', line 3

def self.html5_for_all_browsers!
  Xebec::HTML5.force = true
end