UNPKG

devexpress-reporting

Version:

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

27 lines (26 loc) 1.03 kB
/** * DevExpress HTML/JS Reporting (designer\bands\xrGroupBand.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 { deserializeArray } from '@devexpress/analytics-core/analytics-utils'; import { GroupFieldModel } from './groupfield'; import { BandViewModel } from './xrBand'; export class GroupHeaderBand extends BandViewModel { dispose() { super.dispose(); this.disposeObservableArray(this.groupFields); this.resetObservableArray(this.groupFields); } constructor(band, parent, serializer) { super(band, parent, serializer); this.groupFields = deserializeArray(band.GroupFields, (field) => { return new GroupFieldModel(field, serializer); }); this.sortingSummary.getPath = (propertyName) => { if (propertyName === 'fieldName') { return this.getPath('groupFields'); } }; } }