aurelia-smart-table
v1.2.2
Published
A simple table wrapper for Aurelia.
Downloads
7
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.