UNPKG

ngx-treeview

Version:

An Angular treeview component with checkbox

28 lines 928 B
import { Injectable } from '@angular/core'; var TreeviewConfig = /** @class */ (function () { function TreeviewConfig() { this.hasAllCheckBox = true; this.hasFilter = false; this.hasCollapseExpand = false; this.decoupleChildFromParent = false; this.maxHeight = 500; } Object.defineProperty(TreeviewConfig.prototype, "hasDivider", { get: function () { return this.hasFilter || this.hasAllCheckBox || this.hasCollapseExpand; }, enumerable: true, configurable: true }); TreeviewConfig.create = function (fields) { var config = new TreeviewConfig(); Object.assign(config, fields); return config; }; TreeviewConfig.decorators = [ { type: Injectable }, ]; return TreeviewConfig; }()); export { TreeviewConfig }; //# sourceMappingURL=treeview-config.js.map