UNPKG

devexpress-reporting

Version:

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

21 lines (20 loc) 1.48 kB
/** * DevExpress HTML/JS Reporting (designer\internal\_addVariablesToExpressionEditor.js) * Version: 20.2.13 * Build date: Apr 10, 2023 * Copyright (c) 2012 - 2023 Developer Express Inc. ALL RIGHTS RESERVED * License: https://www.devexpress.com/Support/EULAs/universal.xml */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); var analytics_widgets_internal_1 = require("@devexpress/analytics-core/analytics-widgets-internal"); function addVariablesToExpressionEditor(categories, customizeItems) { if (customizeItems === void 0) { customizeItems = function (items) { return items; }; } var items = customizeItems([ { text: 'DataSource.CurrentRowIndex', val: '[DataSource.CurrentRowIndex]', descriptionStringId: 'ReportStringId.ExpressionEditor_ItemInfo_Variables_CurrentRowIndex_Description' }, { text: 'DataSource.RowCount', val: '[DataSource.RowCount]', descriptionStringId: 'ReportStringId.ExpressionEditor_ItemInfo_Variables_RowCount_Description' }, { text: 'DataSource.CurrentRowHierarchyLevel', val: '[DataSource.CurrentRowHierarchyLevel]', descriptionStringId: 'ReportStringId.ExpressionEditor_ItemInfo_Variables_CurrentRowHierarchyLevel_Description' } ]); categories.push(analytics_widgets_internal_1.createExpressionEditorCollectionToolOptions(items, 'Variables', 'ReportStringId.ExpressionEditor_ItemInfo_Variables', true)); } exports.addVariablesToExpressionEditor = addVariablesToExpressionEditor;