UNPKG

@adaptabletools/adaptable-cjs

Version:

Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements

27 lines (26 loc) 846 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getFormatColumnRowTargetItems = void 0; const getFormatColumnRowTargetItems = (formatColumn) => { let values = []; if (formatColumn.RowScope) { if (!formatColumn.RowScope.ExcludeDataRows) { values.push('Data'); } if (!formatColumn.RowScope.ExcludeGroupRows) { values.push('Group'); } if (!formatColumn.RowScope.ExcludeSummaryRows) { values.push('Summary'); } if (!formatColumn.RowScope.ExcludeTotalRows) { values.push('Total'); } } values = values.filter(Boolean); return { name: 'Rows', values: values.length > 0 ? values : ['-'], }; }; exports.getFormatColumnRowTargetItems = getFormatColumnRowTargetItems;