export class ColDefUtil { public static STRING_PROPERTIES = [ 'headerName', 'columnGroupShow', 'headerClass', 'toolPanelClass', 'headerValueGetter', 'pivotKeys', 'groupId', 'colId', 'sort', 'field', 'type', 'tooltipField', 'headerTooltip', 'cellClass', 'showRowGroup', 'template', 'templateUrl', 'filter', 'aggFunc', 'cellRenderer', 'cellEditor', 'pinned' ]; public static OBJECT_PROPERTIES = [ 'headerGroupComponent', 'headerGroupComponentFramework', 'headerGroupComponentParams', 'cellStyle', 'cellRendererParams', 'cellEditorFramework', 'cellEditorParams', 'pinnedRowCellRendererFramework', 'pinnedRowCellRendererParams', 'filterFramework', 'filterParams', 'pivotValueColumn', 'headerComponent', 'headerComponentFramework', 'headerComponentParams', 'floatingFilterComponent', 'floatingFilterComponentParams', 'floatingFilterComponentFramework', 'refData']; public static ARRAY_PROPERTIES = [ 'children', 'sortingOrder', 'allowedAggFuncs', 'menuTabs', 'pivotTotalColumnIds', 'cellClassRules', 'icons']; public static NUMBER_PROPERTIES = [ 'sortedAt', 'width', 'minWidth', 'maxWidth', 'rowGroupIndex', 'pivotIndex']; public static BOOLEAN_PROPERTIES = [ 'suppressCellFlash', 'suppressToolPanel', 'openByDefault', 'marryChildren', 'hide', 'rowGroup', 'pivot', 'checkboxSelection', 'headerCheckboxSelection', 'headerCheckboxSelectionFilteredOnly', 'suppressMenu', 'suppressSorting', 'suppressMovable', 'suppressFilter', 'lockPosition', 'lockVisible', 'lockPinned', 'unSortIcon', 'suppressSizeToFit', 'suppressResize', 'suppressAutoSize', 'enableRowGroup', 'enablePivot', 'enableValue', 'editable', 'suppressPaste', 'suppressNavigable', 'enableCellChangeFlash', 'rowDrag', 'autoHeight' ]; public static FUNCTION_PROPERTIES = [ 'valueGetter', 'valueSetter', 'filterValueGetter', 'keyCreator', 'cellRenderer', 'cellRendererFramework', 'pinnedRowCellRenderer', 'valueFormatter', 'pinnedRowValueFormatter', 'valueParser', 'comparator', 'equals', 'pivotComparator', 'suppressKeyboardEvent', 'colSpan', 'rowSpan', 'getQuickFilterText', 'newValueHandler', 'onCellValueChanged', 'onCellClicked', 'onCellDoubleClicked', 'onCellContextMenu', 'tooltip', 'cellRendererSelector', 'cellEditorSelector']; public static ALL_PROPERTIES = ColDefUtil.ARRAY_PROPERTIES .concat(ColDefUtil.OBJECT_PROPERTIES) .concat(ColDefUtil.STRING_PROPERTIES) .concat(ColDefUtil.NUMBER_PROPERTIES) .concat(ColDefUtil.FUNCTION_PROPERTIES) .concat(ColDefUtil.BOOLEAN_PROPERTIES); // used when doing property checks - this causes noise when using frameworks which can add their own fw specific // properties to coldefs, gridOptions etc public static FRAMEWORK_PROPERTIES = ['__ob__', '__metadata__', 'mappedColumnProperties', 'hasChildColumns', 'toColDef', 'createColDefFromGridColumn']; }