I have a requirement to allow filter only when filter text is more than three characters. Is there any way to put some validation logic somewhere?
Looked at the ag-grid custom filter document but don't know which way is best to accomplish this with minimal coding. Looked at onFloatingFilterChanged in IFloatingFilterParams, onFloatingFilterChanged in Custom Floating Filter, and isFilterActive in IFilterComp but documentations are all fuzzy and there's no specific example for this purpose.
Anyone tried to implement this? What's the best way to accomplish this?
onFloatingFilterChangedimplementation following the examplethis.onFloatingFilterChanged = change => { const { minChars } = this.state; if(change && change.model && (!change.model.filter || change.model.filter.length >= minChars)) { return props.onFloatingFilterChanged(change); } return false; };- flynhigh