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>
date taken state taken api response. have ability sort alphabetically (a-z, z-a), , each of numbers (contributions, followers, repos, gists - biggest smallest, smallest biggest). , filter amount. looking library me no avail. how can implement that?

take @ react-data-grid

examples :


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -