UNPKG

devexpress-reporting

Version:

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

30 lines (29 loc) 1.05 kB
/** * DevExpress HTML/JS Reporting (designer\wizard\internal\_crossTabDragUtils.js) * Version: 25.2.3 * Build date: Dec 15, 2025 * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * License: https://www.devexpress.com/Support/EULAs/universal.xml */ import * as ko from 'knockout'; import { isList, WizardDragDropHandler } from '@devexpress/analytics-core/analytics-internal'; import { FieldListController } from '../../internal/fieldlist/_fieldListController'; export class CrossTabWizardFieldListController extends FieldListController { constructor() { super(...arguments); this.showIconsForChildItems = () => true; } isDraggable(item) { if (item.data && !isList(item.data)) return true; return false; } } export class CrossTabWizardDragDropHandler extends WizardDragDropHandler { doStopDrag(ui, _) { this.dragHelperContent.reset(); if (this._dropTarget) { this._addHandler(this._dropTarget, ko.dataFor(ui).data.name); } } }