Class: DaisyUI::Timeline
- Inherits:
-
Base
- Object
- Phlex::HTML
- Base
- DaisyUI::Timeline
show all
- Defined in:
- lib/daisy_ui/timeline.rb
Constant Summary
Constants inherited
from Base
Base::BOOLS, Base::COLOR_MODIFIERS
Instance Method Summary
collapse
Methods inherited from Base
inherited, register_modifiers
Constructor Details
#initialize(as: :ul) ⇒ Timeline
Returns a new instance of Timeline.
8
9
10
|
# File 'lib/daisy_ui/timeline.rb', line 8
def initialize(*, as: :ul, **)
super
end
|
Instance Method Details
#end(**options) ⇒ Object
26
27
28
|
# File 'lib/daisy_ui/timeline.rb', line 26
def end(**options, &)
div(class: component_classes("timeline-end", options:), **options, &)
end
|
#middle(**options) ⇒ Object
22
23
24
|
# File 'lib/daisy_ui/timeline.rb', line 22
def middle(**options, &)
div(class: component_classes("timeline-middle", options:), **options, &)
end
|
#start(**options) ⇒ Object
18
19
20
|
# File 'lib/daisy_ui/timeline.rb', line 18
def start(**options, &)
div(class: component_classes("timeline-start", options:), **options, &)
end
|
#view_template ⇒ Object
12
13
14
15
16
|
# File 'lib/daisy_ui/timeline.rb', line 12
def view_template
public_send(as, class: classes, **attributes) do
yield self if block_given?
end
end
|