Class: Playbook::PbNav::Nav

Inherits:
Object
  • Object
show all
Includes:
ActionView::Helpers::TagHelper, Playbook::Props
Defined in:
app/pb_kits/playbook/pb_nav/nav.rb

Instance Method Summary collapse

Methods included from Playbook::Props

#dark_props, #generate_classname, #generate_classname_without_spacing, #initialize, #prop, #spacing_options, #spacing_props, #spacing_values

Instance Method Details

#borderless_classObject



30
31
32
# File 'app/pb_kits/playbook/pb_nav/nav.rb', line 30

def borderless_class
  borderless ? "borderless" : nil
end

#classnameObject



22
23
24
# File 'app/pb_kits/playbook/pb_nav/nav.rb', line 22

def classname
  generate_classname("pb_nav_list", variant, orientation, highlight_class, borderless_class)
end

#highlight_classObject



26
27
28
# File 'app/pb_kits/playbook/pb_nav/nav.rb', line 26

def highlight_class
  highlight ? "highlight" : nil
end