2
0
mirror of https://github.com/frappe/books.git synced 2025-01-25 16:18:33 +00:00
Faris Ansari 9878055ddf More functionality to Tree Component
- Make a basecomponent to encapsulate bootstrapping of WC
- Remove old tree.js
- Refactor Tree Components into JS and HTML
2018-04-12 02:04:45 +05:30

20 lines
342 B
JavaScript

const BaseComponent = require('../baseComponent');
const TreeNode = require('./treeNode');
class Tree extends BaseComponent {
get templateHTML() {
return require('./index.html');
}
constructor() {
super('Tree');
}
}
window.customElements.define('f-tree', Tree);
module.exports = {
Tree,
TreeNode
}