Skip to content
This repository has been archived by the owner on Nov 25, 2020. It is now read-only.

Commit

Permalink
feat(project): Add gather data
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremyvergnas committed Oct 4, 2016
1 parent 83f331e commit 6e9ca45
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/bootstrap/datatable.html 100644 → 100755
Expand Up @@ -52,7 +52,7 @@


<!-- Columns --> <!-- Columns -->
<td repeat.for="columnLabel of columnLabels"> <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> </td>


<!-- Actions --> <!-- Actions -->
Expand Down
8 changes: 8 additions & 0 deletions src/datatable.js 100644 → 100755
Expand Up @@ -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) { populateEntity(row) {
return this.repository.getPopulatedEntity(row); return this.repository.getPopulatedEntity(row);
} }
Expand Down

0 comments on commit 6e9ca45

Please sign in to comment.