aurelia-smart-table

A simple table wrapper for Aurelia.

Usage no npm install needed!

<script type="module">
  import aureliaSmartTable from 'https://cdn.skypack.dev/aurelia-smart-table';
</script>

README

Aurelia Smart Table

A simple plugin that makes easy to work with table.

Installation

Use npm or yarn to install aurelia-smart-table.

npm i aurelia-smart-table

or

yarn add aurelia-smart-table

Usage

Import the plugin in your application.

aurelia.use.plugin('aurelia-smart-table');

Then use it like that:

<smart-table data.bind="[ourData]">
  <!-- Repeat for each columns -->
  <table-column>
    <table-header-cell [attributes]>[columnTitle]</table-header-cell>
    <table-cell [attributes]>
      <!-- Apply treatment to the data element -->
      ${element}
    </table-cell>
  </table-column>

  <table-header-row [attributes]></table-header-row>
  <table-row [attributes]></table-row>
</smart-table>

Demo & documentation

You can find the documentation and the demo here.

License

MIT