Class: DaisyUI::Card
- Inherits:
-
Base
- Object
- Phlex::HTML
- Base
- DaisyUI::Card
show all
- Defined in:
- lib/daisy_ui/card.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: :section) ⇒ Card
Returns a new instance of Card.
7
8
9
|
# File 'lib/daisy_ui/card.rb', line 7
def initialize(*, as: :section, **)
super
end
|
Instance Method Details
#actions(**options) ⇒ Object
23
24
25
|
# File 'lib/daisy_ui/card.rb', line 23
def actions(**options, &)
(class: component_classes("card-actions", options:), **options, &)
end
|
#body(**options) ⇒ Object
15
16
17
|
# File 'lib/daisy_ui/card.rb', line 15
def body(**options, &)
div(class: component_classes("card-body", options:), **options, &)
end
|
#title(**options) ⇒ Object
19
20
21
|
# File 'lib/daisy_ui/card.rb', line 19
def title(**options, &)
(class: component_classes("card-title", options:), **options, &)
end
|
#view_template ⇒ Object
11
12
13
|
# File 'lib/daisy_ui/card.rb', line 11
def view_template(&)
public_send(as, class: classes, **attributes, &)
end
|