primevue-mirror/service/NodeService.js

13 lines
323 B
JavaScript
Raw Normal View History

2019-07-31 15:35:23 +00:00
export default class NodeService {
2019-10-01 13:00:26 +00:00
2019-07-31 15:35:23 +00:00
getTreeTableNodes() {
2022-09-12 14:07:51 +00:00
return fetch('/demo/data/treetablenodes.json').then(res => res.json())
2021-10-05 07:41:07 +00:00
.then(d => d.root);
2019-07-31 15:35:23 +00:00
}
getTreeNodes() {
2022-09-12 14:07:51 +00:00
return fetch('/demo/data/treenodes.json').then(res => res.json())
2021-10-05 07:41:07 +00:00
.then(d => d.root);
2019-07-31 15:35:23 +00:00
}
2021-10-05 07:41:07 +00:00
}