A data-table using aurelia-orm and aurelia-pager
Features:
- Pagination
- Sorting
- Integrated ORM
- Search
- Custom columns
- Custom button actions
- Custom valueConverters
- And more
Run jspm i aurelia-datatable
from your project root.
Run npm i aurelia-datatable --save
from your project root.
You can find usage examples and the documentation here.
The changelog provides you with information about important changes.
Here's a snippet to give you an idea of what this module supports.
this.repository = entityManager.getRepository('users');
<data-table
destroy.delegate="myEventCallback($event)" // or without the function to let ORM take care of it
edit.delegate="myEventCallback($event)"
columns="id,name as 'username', createdAt | dateFormat: 'yyyy-mm-dd'"
repository.bind="repository"
search-column="name"
searchable
sortable
></data-table>