UNPKG

devexpress-reporting

Version:

DevExpress Reporting provides the capability to develop a reporting application to create and customize reports.

22 lines (21 loc) 877 B
/** * DevExpress HTML/JS Reporting (chart\widgets\_collectionLookupEditor.js) * Version: 25.1.3 * Build date: Jun 26, 2025 * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * License: https://www.devexpress.com/Support/EULAs/universal.xml */ import { Editor } from '@devexpress/analytics-core/analytics-widgets'; import * as ko from 'knockout'; export class CollectionLookupEditorModel extends Editor { constructor(info, level, parentDisabled, textToSearch) { super(info, level, parentDisabled, textToSearch); this.array = ko.computed(() => { return this.value() || []; }); this.selectedItem = ko.observable(); this._disposables.push(this.array); } get editors() { const selectedItem = this.selectedItem(); return selectedItem && selectedItem['getInfo'] && selectedItem['getInfo'](); } }