Class: Trek::Dashboard::ChartComponent
- Includes:
- Chartkick::Helper
- Defined in:
- app/components/trek/dashboard/chart_component.rb
Instance Method Summary collapse
Methods included from StimulusHelpers
#stimulus_action, #stimulus_class, #stimulus_class_hash, #stimulus_class_key, #stimulus_target, #stimulus_target_hash, #stimulus_target_key, #stimulus_value, #stimulus_value_hash, #stimulus_value_key
Methods included from CssClassesHelpers
#class_for, #class_names_for, #root_class
Methods included from IdentifierHelper
Instance Method Details
#chart ⇒ Object
16 17 18 |
# File 'app/components/trek/dashboard/chart_component.rb', line 16 def chart public_send(type, data, **) end |
#classes ⇒ Object
20 21 22 23 24 25 |
# File 'app/components/trek/dashboard/chart_component.rb', line 20 def classes class_names( root_class, class_for("color-#{color}") ) end |