Package Exports
- react-table-generator
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (react-table-generator) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Props
| Format | Required | What it does ? | |
|---|---|---|---|
| title | string |
YES | The title of the table |
| columns | array |
YES | An array to initialize the table |
| entries | array |
NO | An array to fill the table |
Columns
Each colums can have this props
| Format | Required | Default value | What it does ? | |
|---|---|---|---|---|
| canSort | boolean |
NO | false | Activate sort on this column |
| defaultSort | string one of : ['asc', 'desc'] |
NO | If column can be sorted,this boolean indicate the table will be initialy sorted by this column | |
| canFilter | boolean |
NO | false | Activate auto-filters on displayed entries |
| canSearch | boolean |
NO | false | Activate the text search field for this column |
| canHide | boolean |
NO | false | Hide the column in the table, usefull to activate filter without display the field |
| canTotal | ? |