UNPKG

@adaptabletools/adaptable-cjs

Version:

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

26 lines (25 loc) 864 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getFormatColumnSettingsViewItems = void 0; const getFormatColumnSettingsViewItems = (formatColumn) => { let values = []; if (formatColumn.CellAlignment) { values.push(`Cell Alignment: ${formatColumn.CellAlignment}`); } if (formatColumn.RowScope) { if (formatColumn.RowScope.ExcludeDataRows) { values.push('Exclude Data Rows'); } if (formatColumn.RowScope.ExcludeGroupRows) { values.push('Exclude Group Rows'); } if (formatColumn.RowScope.ExcludeSummaryRows) { values.push('Exclude Summary Rows'); } } return { name: 'Settings', values: values.filter(Boolean), }; }; exports.getFormatColumnSettingsViewItems = getFormatColumnSettingsViewItems;