primevue-mirror/service/NodeService.js

14 lines
348 B
JavaScript
Raw Normal View History

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