Class: UI::DrawerFooterComponent
- Inherits:
-
ViewComponent::Base
- Object
- ViewComponent::Base
- UI::DrawerFooterComponent
- Includes:
- DrawerFooterBehavior
- Defined in:
- app/view_components/ui/drawer_footer_component.rb
Overview
Drawer footer component (ViewComponent) Action area for drawer (buttons, etc.)
Instance Method Summary collapse
- #call ⇒ Object
-
#initialize(classes: "", attributes: {}) ⇒ DrawerFooterComponent
constructor
A new instance of DrawerFooterComponent.
Methods included from DrawerFooterBehavior
#drawer_footer_base_classes, #drawer_footer_classes, #drawer_footer_html_attributes
Constructor Details
#initialize(classes: "", attributes: {}) ⇒ DrawerFooterComponent
Returns a new instance of DrawerFooterComponent.
16 17 18 19 |
# File 'app/view_components/ui/drawer_footer_component.rb', line 16 def initialize(classes: "", attributes: {}) @classes = classes @attributes = attributes end |
Instance Method Details
#call ⇒ Object
21 22 23 |
# File 'app/view_components/ui/drawer_footer_component.rb', line 21 def call content_tag :div, content, **.merge(@attributes) end |