UNPKG

@adaptabletools/adaptable-cjs

Version:

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

22 lines (21 loc) 778 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getFormatColumnSettingsViewItems = void 0; const getFormatColumnSettingsViewItems = (formatColumn) => { let values = []; if (!formatColumn.Target || formatColumn.Target === 'cell') { values.push('Target: Column Cells'); } else { values.push('Target: Column Header'); } if (formatColumn.ColumnGroupScope) { values.push(`Column Groups: ${formatColumn.ColumnGroupScope === 'Both' ? 'Always' : formatColumn.ColumnGroupScope}`); } values = values.filter(Boolean); return { name: 'Settings', values: values.length > 0 ? values : ['-'], }; }; exports.getFormatColumnSettingsViewItems = getFormatColumnSettingsViewItems;