devexpress-reporting
Version:
DevExpress Reporting provides the capability to develop a reporting application to create and customize reports.
38 lines (37 loc) • 1.48 kB
JavaScript
/**
* DevExpress HTML/JS Reporting (viewer\documentMap\_documentMapTreeListController.js)
* Version: 20.2.13
* Build date: Apr 10, 2023
* Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED
* License: https://www.devexpress.com/Support/EULAs/universal.xml
*/
;
Object.defineProperty(exports, "__esModule", { value: true });
var ko = require("knockout");
var DocumentMapTreeListController = (function () {
function DocumentMapTreeListController() {
this.selectedItem = ko.observable(null);
this.clickHandler = function (item) { return void 0; };
}
DocumentMapTreeListController.prototype.itemsFilter = function (item) {
return true;
};
DocumentMapTreeListController.prototype.hasItems = function (item) {
return item.isList === true;
};
DocumentMapTreeListController.prototype.canSelect = function (value) {
return true;
};
DocumentMapTreeListController.prototype.select = function (value) {
if (this.canSelect(value) && value !== this.selectedItem.peek()) {
this.selectedItem.peek() && this.selectedItem.peek().isSelected(false);
this.selectedItem(value);
value.isSelected(true);
}
};
DocumentMapTreeListController.prototype.showIconsForChildItems = function () {
return false;
};
return DocumentMapTreeListController;
}());
exports.DocumentMapTreeListController = DocumentMapTreeListController;