Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Update documentation

Mir Bhatiad29beb07a548
diff --git a/lookbook/docs/patterns/12-tables.md.erb b/lookbook/docs/patterns/12-tables.md.erb
index cb841e6bf0c..2cafad9ffde 100644
--- a/lookbook/docs/patterns/12-tables.md.erb
+++ b/lookbook/docs/patterns/12-tables.md.erb
@@ -77,8 +77,19 @@ main_column :title
```
Note: Ideally, one one main column will be present for each table.
+#### Footer
+Set `has_footer?` to true to add a footer to the table, defining the component/content to be rendered with the `footer` method.
+```ruby
+def has_footer?
+ true
+end
+
+def footer
+ render CustomFooterComponent.new(...)
+end
+```
## Best practices
diff --git a/modules/meeting/app/components/recurring_meetings/table_component.rb b/modules/meeting/app/components/recurring_meetings/table_component.rb
index 720bab91af3..520c2c4e6a6 100644
--- a/modules/meeting/app/components/recurring_meetings/table_component.rb
+++ b/modules/meeting/app/components/recurring_meetings/table_component.rb
@@ -38,7 +38,7 @@ module RecurringMeetings
true
end
- def has_footer? # rubocop:disable Metrics/AbcSize
+ def has_footer?
return false unless recurring_meeting
options[:max_count] - count > 0