Module: UI::EmptyDescriptionBehavior
- Included in:
- EmptyDescription, EmptyDescriptionComponent
- Defined in:
- app/helpers/ui/empty_behavior.rb,
app/behaviors/ui/empty_behavior.rb
Overview
EmptyDescriptionBehavior - Shared behavior for EmptyDescription sub-component
Instance Method Summary collapse
Instance Method Details
#empty_description_classes ⇒ Object
99 100 101 102 103 104 105 |
# File 'app/helpers/ui/empty_behavior.rb', line 99 def empty_description_classes classes_value = respond_to?(:classes, true) ? classes : @classes TailwindMerge::Merger.new.merge([ "text-sm text-muted-foreground", classes_value ].compact.join(" ")) end |
#empty_description_html_attributes ⇒ Object
92 93 94 95 96 97 |
# File 'app/helpers/ui/empty_behavior.rb', line 92 def empty_description_html_attributes { class: empty_description_classes, data: {slot: "empty-description"} } end |