class Navigasmic::Builder::ListBuilder::Configuration
Attributes
disabled_class[RW]
group_tag[RW]
has_nested_class[RW]
highlighted_class[RW]
is_nested_class[RW]
item_class[RW]
item_tag[RW]
label_generator[RW]
link_generator[RW]
wrapper_class[RW]
wrapper_tag[RW]
Public Class Methods
new()
click to toggle source
Calls superclass method
# File lib/navigasmic/builders/list_builder.rb, line 9 def initialize # which keys (for other builder) should be removed from options @excluded_keys = [:map] # tag configurations @wrapper_tag = :ul @group_tag = :ul @item_tag = :li # class configurations @wrapper_class = 'semantic-navigation' @item_class = nil @has_nested_class = 'has-nested' @is_nested_class = 'is-nested' @disabled_class = 'disabled' @highlighted_class = 'active' # generator callbacks @link_generator = proc{ |label, link, options, is_nested| link_to(label, link, options) } @label_generator = proc{ |label, is_linked, is_nested| "<span>#{label}</span>" } super end