Module: UI::DialogFooterBehavior
- Included in:
- DialogFooter, DialogFooterComponent
- Defined in:
- app/behaviors/ui/dialog_footer_behavior.rb
Overview
Shared behavior for Dialog Footer component
Instance Method Summary collapse
-
#dialog_footer_base_classes ⇒ Object
Base classes applied to dialog footer.
-
#dialog_footer_classes ⇒ Object
Returns combined CSS classes for the dialog footer.
-
#dialog_footer_html_attributes ⇒ Object
Returns HTML attributes for the dialog footer.
Instance Method Details
#dialog_footer_base_classes ⇒ Object
Base classes applied to dialog footer
23 24 25 |
# File 'app/behaviors/ui/dialog_footer_behavior.rb', line 23 def "flex flex-col-reverse gap-2 sm:flex-row sm:justify-end" end |
#dialog_footer_classes ⇒ Object
Returns combined CSS classes for the dialog footer
15 16 17 18 19 20 |
# File 'app/behaviors/ui/dialog_footer_behavior.rb', line 15 def TailwindMerge::Merger.new.merge([ , @classes ].compact.join(" ")) end |
#dialog_footer_html_attributes ⇒ Object
Returns HTML attributes for the dialog footer
8 9 10 11 12 |
# File 'app/behaviors/ui/dialog_footer_behavior.rb', line 8 def { class: } end |