lib/xebec.rb in xebec-2.6.1 vs lib/xebec.rb in xebec-2.7.0

- old
+ new

@@ -11,9 +11,22 @@ # The navigation bar renderer class. Defaults to # Xebec::NavBarRenderer # # @see Xebec::NavBarRenderer attr_accessor :renderer_class + + # 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. + # + # @see Xebec::NavBar#current_is_link + attr_accessor :current_is_link end self.currently_selected_nav_item_class = :current self.renderer_class = Xebec::NavBarRenderer