This document is a little out of date as lists have been rewritten some to conform with the custom generators. - JB 2022-01-26
A better title might be tables.
The TableComponent takes a number of props
and then passes that data into react-table.
Props
title
- The title on the listcolumns
- The columns to includedata
- The data to presentqueries
- Includes theDELETEMUTATION
to allow deletes from the list, and theQUERY
for refetching but that doesn't seem to work yet.routes
- Determines where you go when you click onNew Record
, andEdit
display
- Controls what is displayed as thetitle
attribute ofNew Record
andEdit
. This is seen as a hoverover now.roles
- Controls what buttons you see depending on thedeleteRecord
,createRecord
,editRecord
roles defined.queryVariables
- Not used as it depends onQUERY
working with refetches.count
- used to display the number of resultsenableSearch
- controls if the search field is on the pagetable
- used to read the logged in userssetSearchInput
- function used to update the search input for current listsearchInput
- the search input for the current list
Search / Filtering
Search works but still needs improvement at the query it shows is rough. The search box will search fields defined in the service
file.
Pagination
We have pagination, but like search it could be improved.
Sort (click the heading of a column)
This is all set and is working.
Limit
This works
Header actions
This works, to sort columns that allow it and weather or not the column is displayed.
Cell actions
This works, to build filters, and copy data.