react-antd-admin-panel
Version:
Easy prototyping admin panel using React and Antd
20 lines • 817 B
JavaScript
import Default from "./Default";
export default class Tree extends Default {
constructor() {
var _a;
super('Tree');
/** Component-return functions.
* - Call .tsx functions from the model
* - Functions will be set at the end of the .tsx
*/
this.selectNode = () => { };
this.expandNode = () => { };
this.reloadLocal = () => { };
this.env = JSON.parse((_a = window.localStorage.getItem('env')) !== null && _a !== void 0 ? _a : '{}');
}
nodeAdd(v) { this._nodeAdd = v; return this; }
nodeRemove(v) { this._nodeRemove = v; return this; }
getOnChild(v) { this._getOnChild = v; return this; }
getOnChildIgnoreIf(v) { this._getOnChildIgnoreIf = v; return this; }
}
//# sourceMappingURL=Tree.js.map