Class: UI::CarouselContent
- Inherits:
-
Phlex::HTML
- Object
- Phlex::HTML
- UI::CarouselContent
- Defined in:
- app/components/ui/carousel_content.rb
Instance Method Summary collapse
-
#initialize(classes: nil, **attributes) ⇒ CarouselContent
constructor
A new instance of CarouselContent.
- #view_template(&block) ⇒ Object
Constructor Details
#initialize(classes: nil, **attributes) ⇒ CarouselContent
Returns a new instance of CarouselContent.
4 5 6 7 |
# File 'app/components/ui/carousel_content.rb', line 4 def initialize(classes: nil, **attributes) @classes = classes @attributes = attributes end |
Instance Method Details
#view_template(&block) ⇒ Object
9 10 11 12 13 14 15 |
# File 'app/components/ui/carousel_content.rb', line 9 def view_template(&block) extend UI::CarouselContentBehavior div(**carousel_content_html_attributes) do div(**carousel_content_container_html_attributes, &block) end end |