Class: FoxTail::ProgressBarComponent::StimulusController

Inherits:
StimulusController show all
Defined in:
app/components/fox_tail/progress_bar_component.rb

Instance Attribute Summary

Attributes inherited from StimulusController

#identifier

Instance Method Summary collapse

Methods inherited from StimulusController

#action, #action_param_key, #build_actions, #classes_key, #config, #event, #initialize, #merge, #merge!, #outlet_key, #target_key, #to_s, #to_sym, #value_key

Constructor Details

This class inherits a constructor from FoxTail::StimulusController

Instance Method Details

#attributes(options = {}) ⇒ Object



61
62
63
64
65
66
# File 'app/components/fox_tail/progress_bar_component.rb', line 61

def attributes(options = {})
  attributes = super
  attributes[:data][value_key(:progress)] = options[:value]
  attributes[:data][value_key(:update_label)] = options[:update_label]
  attributes
end