javascript - ReactJS filterable, sortable tables -
in component's state there 'contributors' array. each element of array object properties. want display them in table. , want have ability sort , filter it. e.g.:
<table> <tr> <th>name</th> <th>contributions</th> <th>followers</th> <th>repos</th> <th>gists</th> </tr> <tr> <td>peter</td> <td>3000</td> <td>12</td> <td>30</td> <td>30</td> </tr> <tr> <td>george</td> <td>200</td> <td>0</td> <td>1</td> <td>1</td> </tr> <tr> <td>stephanie</td> <td>333</td> <td>2</td> <td>2</td> <td>2</td> </tr> <tr> <td>caroline</td> <td>333</td> <td>2</td> <td>100</td> <td>100</td> </tr> <tr> <td>paul</td> <td>5</td> <td>5</td> <td>3</td> <td>3</td> </tr> <tr> <td>adam</td> <td>9001</td> <td>33333</td> <td>22</td> <td>22</td> </tr> </table>
take @ react-data-grid
examples :
Comments
Post a Comment