@adaptabletools/adaptable
Version:
Powerful data-agnostic HTML5 AG Grid extension which provides advanced, cutting-edge functionality to meet all DataGrid requirements
22 lines (21 loc) • 666 B
JavaScript
export 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),
};
};