A React Table Component Which Can Handle All The Major Possiblities With Minimal Amount Of Code
General Table Component Yojak Tech
Props
Parameter | Description | Type | Defaults |
---|---|---|---|
title | string | – | |
columns | array of objects | – | |
rows | array of objects | – | |
rowsloading | boolean | false | |
checkBoxes | boolean | false | |
setArrayOfChecked | function | – | |
arrayOfChecked | array | – | |
setAllChecked | function | – | |
allChecked | boolean | false | |
pagination | To enable pagination from backend | boolean | false |
totalPages | Total number of pages which are there according to paginated data | number | – |
currentPage | number | – | |
setCurrentPage | function | – | |
url | string | – | |
collapsable | boolean | false | |
subCol | array of objects | – | |
subRowKey | string | – |