Module: UI::SidebarFooterBehavior
- Included in:
- SidebarFooter
- Defined in:
- app/behaviors/ui/sidebar_footer_behavior.rb
Overview
FooterBehavior
Shared behavior for SidebarFooter component.
Instance Method Summary collapse
- #sidebar_footer_classes ⇒ Object
- #sidebar_footer_data_attributes ⇒ Object
- #sidebar_footer_html_attributes ⇒ Object
Instance Method Details
#sidebar_footer_classes ⇒ Object
16 17 18 19 20 21 22 |
# File 'app/behaviors/ui/sidebar_footer_behavior.rb', line 16 def classes_value = respond_to?(:classes, true) ? classes : @classes TailwindMerge::Merger.new.merge([ , classes_value ].compact.join(" ")) end |
#sidebar_footer_data_attributes ⇒ Object
24 25 26 27 28 |
# File 'app/behaviors/ui/sidebar_footer_behavior.rb', line 24 def { slot: "sidebar-footer" } end |
#sidebar_footer_html_attributes ⇒ Object
9 10 11 12 13 14 |
# File 'app/behaviors/ui/sidebar_footer_behavior.rb', line 9 def { class: , data: } end |