devexpress-reporting
Version:
DevExpress Reporting provides the capability to develop a reporting application to create and customize reports.
22 lines (21 loc) • 888 B
JavaScript
/**
* DevExpress HTML/JS Reporting (chart\widgets\_collectionLookupEditor.js)
* Version: 26.1.3
* Build date: Jun 16, 2026
* Copyright (c) 2012 - 2026 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 ko.unwrap(this.value()) || []; });
this.selectedItem = ko.observable();
this._disposables.push(this.array);
}
get editors() {
const selectedItem = this.selectedItem();
return selectedItem && selectedItem['getInfo'] && selectedItem['getInfo']();
}
}