Permalink
Browse files

fix(view): configure framework

  • Loading branch information...
VMBindraban
VMBindraban committed Jun 14, 2016
1 parent af86925 commit ebfa6cc07712081215c58d804d53f64ba94b6525
Showing with 3 additions and 6 deletions.
  1. +2 −4 doc/Usage.md
  2. +1 −2 src/index.js
@@ -105,7 +105,5 @@ Full criteria object used to talk to the API. This object contains the `where`,
**Note:** Only use this option if you know what you're doing. Only useful when combined with `resource` or `repository`.
## Templates
You can override the html used for the datatable with your own by configuring them through the [Spoonx/Aurelia-view-manager](https://github.com/spoonx/aurelia-view-manager).
For reference when configuring: the namespace used is `spoonx-datatable` and the name of the template is `datatable`.
## Changing framework
You can override the framework used for the datatable with any of the [supported ones](https://github.com/SpoonX/aurelia-datatable/tree/master/src) using the [aurelia-view-manager](https://github.com/spoonx/aurelia-view-manager).
@@ -4,8 +4,7 @@ export function configure(aurelia) {
aurelia.plugin('aurelia-pager');
aurelia.container.get(Config).configureNamespace('spoonx/datatable', {
framework: 'bootstrap',
location : './{{framework}}/{{view}}.html'
location: './{{framework}}/{{view}}.html'
});
aurelia.globalResources('./datatable');

0 comments on commit ebfa6cc

Please sign in to comment.