Class: StimulusPlumbers::Components::Timeline::Event::Slots

Inherits:
Plumber::Slots
  • Object
show all
Defined in:
lib/stimulus_plumbers/components/timeline/event/slots.rb

Instance Method Summary collapse

Methods inherited from Plumber::Slots

#any?, #initialize, #none?, #options_for, #resolve, slot

Constructor Details

This class inherits a constructor from StimulusPlumbers::Plumber::Slots

Instance Method Details

#with_indicator(icon: nil) ⇒ Object



10
11
12
13
# File 'lib/stimulus_plumbers/components/timeline/event/slots.rb', line 10

def with_indicator(icon: nil)
  set_slot(:indicator, icon, { type: icon ? :icon : :dot, icon: icon })
  nil
end