UNPKG

@adaptabletools/adaptable-cjs

Version:

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

32 lines (31 loc) 1.15 kB
"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'); } if (formatColumn.RowScope.ExcludeTotalRows) { values.push('Exclude Total Rows'); } } if (formatColumn.ColumnGroupScope) { values.push(`Column Groups: ${formatColumn.ColumnGroupScope === 'Both' ? 'Always' : formatColumn.ColumnGroupScope}`); } return { name: 'Settings', values: values.filter(Boolean), }; }; exports.getFormatColumnSettingsViewItems = getFormatColumnSettingsViewItems;