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