Class: Playbook::PbIconStatValue::IconStatValue
- Inherits:
-
KitBase
- Object
- ViewComponent::Base
- KitBase
- Playbook::PbIconStatValue::IconStatValue
show all
- Defined in:
- app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.rb
Instance Method Summary
collapse
Methods inherited from KitBase
#object
Methods included from ZIndex
included
Methods included from Spacing
included, #max_width_options, #max_width_props, #max_width_values, #spacing_options, #spacing_props, #spacing_values
Methods included from Classnames
#generate_classname, #generate_classname_without_spacing, included
#initialize, #prop
#pb_rails
#pb_form_with
Instance Method Details
#classname ⇒ Object
28
29
30
|
# File 'app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.rb', line 28
def classname
generate_classname("pb_icon_stat_value_kit", orientation, size, variant)
end
|
#title_size ⇒ Object
36
37
38
39
40
41
42
43
44
|
# File 'app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.rb', line 36
def title_size
if size == "lg"
1
elsif size == "md"
2
else
3
end
end
|
#value_string ⇒ Object
32
33
34
|
# File 'app/pb_kits/playbook/pb_icon_stat_value/icon_stat_value.rb', line 32
def value_string
value.to_s
end
|