@@ -52,6 +52,7 @@ import { reducer, epics } from '@flipbyte/redux-datatable';
52
52
rowHeight: 50 ,
53
53
editing: false ,
54
54
primaryKey: ' id' ,
55
+ noResultsMessage: ' No row(s) found' ,
55
56
routes: { // You can add other routes and handle them using custom actions.
56
57
get: { // The route used to fetch data and it's params
57
58
route: ' /{your_route}' ,
@@ -350,17 +351,18 @@ const YourComponent = () =>
350
351
351
352
### Table config props
352
353
353
- | Key | Type | Required | Default | Description |
354
- | ---------- | ------- | -------- | ------- | ------------------------------------------------------------------------------------------------ |
355
- | name | string | true | - | key in the row data whose value needs to be loaded for the column (does not have to be unique) |
356
- | height | integer | true | - | The maximum height of the table |
357
- | rowHeight | integer | true | - | The maximum height of each table body row |
358
- | routes | object | true | - | Routes definition to fetch data and other custom routes config for custom handling (Check below) |
359
- | components | object | true | - | All the components required for your table |
360
- | entity | object | false | - | [ Normalizr] ( https://github.com/paularmstrong/normalizr ) specification. Check below for details. |
361
- | layout | array | true | - | The layout of your table |
362
- | editing | boolean | false | false | Set the default state of the table to be in editing mode |
363
- | primaryKey | string | true | - | Set the primary key column of the table for actions like editing. |
354
+ | Key | Type | Required | Default | Description |
355
+ | ---------------- | ------- | -------- | ------- | ------------------------------------------------------------------------------------------------ |
356
+ | name | string | true | - | key in the row data whose value needs to be loaded for the column (does not have to be unique) |
357
+ | height | integer | true | - | The maximum height of the table |
358
+ | rowHeight | integer | true | - | The maximum height of each table body row |
359
+ | routes | object | true | - | Routes definition to fetch data and other custom routes config for custom handling (Check below) |
360
+ | components | object | true | - | All the components required for your table |
361
+ | entity | object | false | - | [ Normalizr] ( https://github.com/paularmstrong/normalizr ) specification. Check below for details. |
362
+ | layout | array | true | - | The layout of your table |
363
+ | editing | boolean | false | false | Set the default state of the table to be in editing mode |
364
+ | primaryKey | string | true | - | Set the primary key column of the table for actions like editing. |
365
+ | noResultsMessage | string | true | - | Set the message to be displayed when table is empty |
364
366
365
367
#### Routes object
366
368
0 commit comments