1.2.2 • Published 3 months ago
aurelia-smart-table v1.2.2
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.