Permalink
Browse files

feat(project): Add gather data

  • Loading branch information...
jeremyvergnas committed Oct 4, 2016
1 parent 83f331e commit 6e9ca4521e31127a45ff9f7d748df8953a6c8120
Showing with 9 additions and 1 deletion.
  1. +1 −1 src/bootstrap/datatable.html
  2. +8 −0 src/datatable.js
2 src/bootstrap/datatable.html 100644 → 100755
@@ -52,7 +52,7 @@
<!-- Columns -->
<td repeat.for="columnLabel of columnLabels">
<a click.delegate="selected(row)">${displayValue(row, columnLabel.column) | convertManager: columnLabel.converter}</a>
<a click.delegate="selected(row)" innerhtml.bind="displayValue(row, columnLabel.column) | convertManager: columnLabel.converter"></a>
</td>
<!-- Actions -->
8 src/datatable.js 100644 → 100755
@@ -91,6 +91,14 @@ export class DataTable {
});
}
gatherData(criteria = {}) {
return this.repository.find(criteria || {}, true).then(result => {
return result;
}).catch(error => {
this.triggerEvent('exception', {on: 'load', error: error});
});
}
populateEntity(row) {
return this.repository.getPopulatedEntity(row);
}

0 comments on commit 6e9ca45

Please sign in to comment.