Custom List
It's easy to replace a generic EntryList with a custom List View.
#
ExampleHere's an example of a custom list component:
To use it, we can override the list prop on the target Resource:
#
Used APIsThe example uses the following ec.admin APIs:
Note that the "description" field just uses a plain TextField. When going that route, you have to make sure that the component can handle the field's value. The commented out version of it shows how the field would could be implemented without fieldProps. If going that route, you should at least set those props:
- source: field name (make sure it exists)
- sortable: if true, the list column is sortable (only set to true for fields that support it)
Of course, the component that is used for a field can also be custom. For more info see Writing Your Own Field Component.