Closed maxsibilla closed 2 months ago
Potentially relevant Search UI component https://www.elastic.co/docs/current/search-ui/api/react/components/paging
https://ant.design/components/table
Search for "Ajax" on the page.
Some huge custom functionality added with the current react-data-table-component:
Major limitation of react-data-table-component:
The rows per page Select
component uses defaultValue
prop, but not value
prop. So cannot trigger a dynamic change without "hacks".
Biggest hurdle besides reimplementing the above custom features, would be replacing the many places that this component exists.
This card requires two major components to be modified: the datatable that displays the results and the actual query issued to Search API/Elasticsearch. Related card for the query: https://github.com/sennetconsortium/portal-ui/issues/1573
Instead of returning the whole of the Elasticsearch index based on the query, we will limit it to however many items the user specifies via the dropdown menu:
We will need to override the functionality of the following Datatable features: