/aurelia-datatable

A 100% aurelia based data table component.

Primary LanguageJavaScriptMIT LicenseMIT

aurelia-datatable

Build Status Gitter

A data-table using aurelia-orm and aurelia-pager

Features:

  • Pagination
  • Sorting
  • Integrated ORM
  • Search
  • Custom columns
  • Custom button actions
  • Custom valueConverters
  • And more

Installation

Jspm/SytemJs

Run jspm i aurelia-datatable from your project root.

Webpack

Run npm i aurelia-datatable --save from your project root.

Documentation

You can find usage examples and the documentation here.

The changelog provides you with information about important changes.

Example

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>