I currently have ag-grid implemented in an Angular project with a CustomFilter. The problem is that the file containing the code for the CustomFilter function is becoming quite large and difficult to manage. I am now looking to move the CustomFilter to a separate file for better organization.
Below is a snippet of my code showing the column definition in Angular using TypeScript:
"colId": column.FieldName,
"width": column.Width,
"filter": CustomFilter,
The code for the CustomFilter function resides in the same file, outside of the class where the column definition is located:
function CustomFilter() {
}
CustomFilter.prototype.setGuiTemplate = function (params) {
}
...
I am aiming to relocate the CustomFilter to a separate file and then import it into the main file for a cleaner structure.