Class: UiComponents::DaisyUi::DataDisplay::TimelineComponent

Inherits:
BaseComponent
  • Object
show all
Defined in:
app/components/ui_components/daisy_ui/data_display/timeline_component.rb

Constant Summary collapse

CSS_CLASSES_DEFAULT =
%w[timeline].freeze
CSS_CLASSES_VARIANTS =
%w[timeline-horizontal timeline-vertical timeline-snap-icon timeline-compact].freeze
CSS_CLASSES =
(
  CSS_CLASSES_DEFAULT +
  CSS_CLASSES_VARIANTS +
  Timeline::ItemComponent::CSS_CLASSES
).freeze

Constants inherited from BaseComponent

BaseComponent::ALIGNS, BaseComponent::AXES, BaseComponent::COLORS, BaseComponent::KINDS, BaseComponent::SIZES

Instance Attribute Summary

Attributes inherited from BaseComponent

#slot_order

Instance Method Summary collapse

Methods inherited from BaseComponent

tracks_slot_order

Constructor Details

#initialize(vertical: false, **args) ⇒ TimelineComponent

Returns a new instance of TimelineComponent.



25
26
27
28
29
30
31
32
# File 'app/components/ui_components/daisy_ui/data_display/timeline_component.rb', line 25

def initialize(
      vertical: false,
      **args
    )
  @vertical = vertical

  super(**args)
end