Module: UI::DrawerFooterBehavior
- Included in:
- DrawerFooter, DrawerFooterComponent
- Defined in:
- app/behaviors/ui/drawer_footer_behavior.rb
Overview
Shared behavior for Drawer Footer component Action area for drawer (buttons, etc.)
Instance Method Summary collapse
-
#drawer_footer_base_classes ⇒ Object
Base CSS classes for drawer footer.
-
#drawer_footer_classes ⇒ Object
Merge base classes with custom classes using TailwindMerge.
-
#drawer_footer_html_attributes ⇒ Object
Build complete HTML attributes hash for footer.
Instance Method Details
#drawer_footer_base_classes ⇒ Object
Base CSS classes for drawer footer
9 10 11 |
# File 'app/behaviors/ui/drawer_footer_behavior.rb', line 9 def "mt-auto flex flex-col gap-2 p-4" end |
#drawer_footer_classes ⇒ Object
Merge base classes with custom classes using TailwindMerge
14 15 16 |
# File 'app/behaviors/ui/drawer_footer_behavior.rb', line 14 def TailwindMerge::Merger.new.merge([, @classes].compact.join(" ")) end |
#drawer_footer_html_attributes ⇒ Object
Build complete HTML attributes hash for footer
19 20 21 22 |
# File 'app/behaviors/ui/drawer_footer_behavior.rb', line 19 def base_attrs = @attributes || {} base_attrs.merge(class: ) end |