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