Class: Playbook::PbDashboardValue::DashboardValue

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

#classnameObject



23
24
25
# File 'app/pb_kits/playbook/pb_dashboard_value/dashboard_value.rb', line 23

def classname
  generate_classname("pb_dashboard_value_kit", align)
end

#formatted_stat_valueObject



19
20
21
# File 'app/pb_kits/playbook/pb_dashboard_value/dashboard_value.rb', line 19

def formatted_stat_value
  { **stat_value, value: stat_value[:value].to_i }
end