Remote Table
June 5, 2020 ยท View on GitHub
Remote Table
This is a web component built using stencil that tries to dynamically load values from api returning JSON Array

What it does
Given url returning JSON Array, it will load and display your table, adding local search and pagination.
Just include:
<remote-table remote-url='https://jsonplaceholder.typicode.com/todos'
table-title="Json Typicode Table" footer-text="remote-table 0.1"></remote-table>
Gotcha
You need to add JQuery and DataTable manually
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
<link rel="stylesheet" type="text/css" href="https://cdn.datatables.net/1.10.20/css/jquery.dataTables.css">
<script type="text/javascript" charset="utf8" src="https://cdn.datatables.net/1.10.20/js/jquery.dataTables.js"></script>
How to use :
- Clone the repository
- Run
npm run buildto build component ornpm run startto start local dev - Run
npm run storybookto see the documentation with live example
To-Do:
- Remove JQuery dependency ( use GridJS.io )
- Add option for search & paginate url