Class: Playbook::PbNav::Nav
- Inherits:
-
Object
- Object
- Playbook::PbNav::Nav
show all
- Includes:
- ActionView::Helpers::TagHelper, Playbook::Props
- Defined in:
- app/pb_kits/playbook/pb_nav/nav.rb
Instance Method Summary
collapse
#dark_props, #generate_classname, #generate_classname_without_spacing, #initialize, #prop, #spacing_options, #spacing_props, #spacing_values
Instance Method Details
#borderless_class ⇒ Object
30
31
32
|
# File 'app/pb_kits/playbook/pb_nav/nav.rb', line 30
def borderless_class
borderless ? "borderless" : nil
end
|
#classname ⇒ Object
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_class ⇒ Object
26
27
28
|
# File 'app/pb_kits/playbook/pb_nav/nav.rb', line 26
def highlight_class
highlight ? "highlight" : nil
end
|