Vue Attract: Sort/filterable table based on Vue
Initial commit implementing sortable and filterable tables for attract using Vue.
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { AttractRowsSourceBase } from '../../attracttable/rows/AttractRowsSourceBase'
|
||||
import { TaskRow } from './TaskRow'
|
||||
|
||||
class TaskRowsSource extends AttractRowsSourceBase {
|
||||
constructor(projectId) {
|
||||
super(projectId, 'attract_task', TaskRow);
|
||||
}
|
||||
|
||||
thenInit() {
|
||||
return attract.api.thenGetProjectTasks(this.projectId)
|
||||
.then((result) => {
|
||||
let tasks = result._items;
|
||||
this.initRowObjects(tasks);
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
export { TaskRowsSource }
|
Reference in New Issue
Block a user