Class: Playbook::PbList::List

Inherits:
Object
  • Object
show all
Includes:
Playbook::Props
Defined in:
app/pb_kits/playbook/pb_list/list.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

#list_classnameObject



25
26
27
28
29
30
31
32
33
34
# File 'app/pb_kits/playbook/pb_list/list.rb', line 25

def list_classname
  [
    "pb_list_kit",
    xpadding_class,
    borderless_class,
    dark_class,
    size_class,
    layout_class,
  ].compact.join("_")
end

#ordered_classObject



36
37
38
# File 'app/pb_kits/playbook/pb_list/list.rb', line 36

def ordered_class
  ordered ? "ol" : "ul"
end