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

Add more methods from TableCell

Dombi Attila2a5698411f7d
diff --git a/app/components/table_component.rb b/app/components/table_component.rb
index 994c1b3a863..e5766cd6c96 100644
--- a/app/components/table_component.rb
+++ b/app/components/table_component.rb
@@ -152,18 +152,22 @@ class TableComponent < RailsComponent
render(row_class.new(row:, table: self))
end
- def render_collection(rows)
- row_class.with_collection(rows, table: self)
+ def initial_sort
+ [columns.first, :asc]
end
- def inline_create_link
- nil
+ def initial_order
+ initial_sort.join(' ')
end
def paginated?
rows.respond_to? :total_entries
end
+ def inline_create_link
+ nil
+ end
+
def sortable?
true
end