@@ -52,6 +52,7 @@ import { reducer, epics } from '@flipbyte/redux-datatable';
5252 rowHeight: 50 ,
5353 editing: false ,
5454 primaryKey: ' id' ,
55+ noResultsMessage: ' No row(s) found' ,
5556 routes: { // You can add other routes and handle them using custom actions.
5657 get: { // The route used to fetch data and it's params
5758 route: ' /{your_route}' ,
@@ -350,17 +351,18 @@ const YourComponent = () =>
350351
351352### Table config props
352353
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 |
364366
365367#### Routes object
366368
0 commit comments