UNPKG

devexpress-reporting

Version:

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

42 lines (41 loc) 2 kB
/** * DevExpress HTML/JS Reporting (designer\internal\fieldlist\_parametersViewModel.d.ts) * 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 { IActionsProvider, IItemsExtender } from '@devexpress/analytics-core/analytics-internal'; import { Disposable, IAction, IDataMemberInfo, IPathRequest } from '@devexpress/analytics-core/analytics-utils'; import { TreeListItemViewModel } from '@devexpress/analytics-core/analytics-widgets-internal'; import { ReportViewModel } from '../../controls/xrReport'; import { Parameter } from '../../dataObjects/parameters/parameter'; import { EditParametersDialog } from '../../tools/dialogs/editParametersDialog'; import { AddParameterDialog } from '../../tools/dialogs/parametersDialogs'; import { IReportDesignerParameterEditingSettings } from '../../utils/inititalizer'; import * as ko from 'knockout'; type ButtonAction = { clickAction: (item?: any) => void; imageClassName: string; imageTemplateName: string; text: string; displayText: () => string; canAddItems?: ko.Computed<boolean> | boolean; }; export declare class ParametersViewModel extends Disposable implements IActionsProvider, IItemsExtender { _addParametersDialog: AddParameterDialog; _editParametersDialog: EditParametersDialog; _parameterEditingSettings: IReportDesignerParameterEditingSettings; constructor(report: ReportViewModel); parameters: ko.ObservableArray<Parameter>; addAction: ButtonAction; removeAction: ButtonAction; editAction: ButtonAction; getActions(context: TreeListItemViewModel): IAction[]; add: () => void; remove: (parameter: Parameter) => void; edit: (parameter: Parameter) => void; beforeItemsFilled(request: IPathRequest, items: IDataMemberInfo[]): boolean; afterItemsFilled(request: IPathRequest, items: IDataMemberInfo[]): void; } export {};