devexpress-reporting
Version:
DevExpress Reporting provides the capability to develop a reporting application to create and customize reports.
21 lines (20 loc) • 848 B
JavaScript
/**
* DevExpress HTML/JS Reporting (designer\internal\_bandLevelEditor.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 { UndoEditor } from '@devexpress/analytics-core/queryBuilder-widgets-internal';
import * as ko from 'knockout';
export class BandLevelEditor extends UndoEditor {
constructor(info, level, parentDisabled, textToSearch) {
super(info, level, parentDisabled, textToSearch);
this.min = 0;
this._disposables.push(this.max = ko.pureComputed(() => {
const model = this._get('_model');
const _maxLevel = model?.maxLevel ? model?.maxLevel : model?.getModel?.()?.maxLevel();
return ko.unwrap(_maxLevel);
}));
}
}