devexpress-reporting
Version:
DevExpress Reporting provides the capability to develop a reporting application to create and customize reports.
19 lines (18 loc) • 576 B
JavaScript
/**
* DevExpress HTML/JS Reporting (designer\controls\getNearestBand.js)
* Version: 24.2.6
* Build date: Mar 18, 2025
* Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED
* License: https://www.devexpress.com/Support/EULAs/universal.xml
*/
import { isBand } from './utils/_controlTypes';
export function getNearestBand(target) {
let bandModel = null;
let model = target;
do {
if (isBand(model.controlType))
bandModel = model;
model = model.parentModel();
} while (!bandModel && model);
return bandModel;
}