@peculia/slim-table
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

Simple Tabular Data Display For Small Mobile Devices

1. Example Usage - Vanilla Js/HTML

  • //Inside index.html`

  • ............

<script src='https://unpkg.com/@peculia/slim-table@latest/dist/peculia-slim-table/peculia-slim-table.js'></script>

<slim-table title="My awsome title"></slim-table>

<script>
  const testData = {
    rowHeaders: ["language", "description", "age", "rating"],
    dataPoints: [
      {
        language: "JS",
        description: "Client side web scripting language",
        age: 25,
        rating: 3.5
      },
      {
        language: "Java",
        description: "Multi-purpose cross platform language",
        age: 225,
        rating: 4.5
      },
      {
        language: "Py",
        description: "Client side web scripting language",
        age: 15,
        rating: 4.95
      }
    ]
  };
  const customTableElem = document.querySelector('slim-table');
  if(customTableElem){
    customTableElem.data =  testData;
  }
</script>
  • .......

Package Sidebar

Install

npm i @peculia/slim-table

Weekly Downloads

8

Version

0.0.6

License

MIT

Unpacked Size

740 kB

Total Files

72

Last publish

Collaborators

  • endeesa