# Create Filter Component

**URL:** <https://community.plotly.com/t/create-filter-component/85343>\
**Category:** Dash Python\
**Created:** [June 24, 2024, 3:34pm UTC](https://community.plotly.com/t/create-filter-component/85343 "2024-06-24T15:34:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![231530353](https://avatars.discourse-cdn.com/v4/letter/2/ecae2f/32.png) [@231530353](https://community.plotly.com/u/231530353)\
**Post date:** [June 24, 2024, 3:34pm UTC](https://community.plotly.com/t/create-filter-component/85343/1 "2024-06-24T15:34:20Z")

</div>

Hi team,  
Using Dash Ag Grid, Id like to have the same filter as Year filter here: [https://www.ag-grid.com/javascript-data-grid/component-filter/](https://www.ag-grid.com/javascript-data-grid/component-filter/)

Although I created yearFilter.js and corresponding class, it sounds like my grid cannot find the YearFilter class. Should I register this filter in any other ways?

Thanks,

---

<div class="post-metadata">

**Author:** ![AnnMarieW](https://avatars.discourse-cdn.com/v4/letter/a/ec9cab/32.png) [@AnnMarieW](https://community.plotly.com/u/AnnMarieW)\
**Post date:** [June 24, 2024, 4:05pm UTC](https://community.plotly.com/t/create-filter-component/85343/2 "2024-06-24T16:05:19Z")

</div>

Hi @231530353

You can find an example here:

> [@Ag-Grid Custom Filtering](https://community.plotly.com/t/ag-grid-custom-filtering/79061/14):
>
> Hello @robertf, There isnt currently a way to do this, but I have a [PR](https://github.com/plotly/dash-ag-grid/pull/243) pending that will fix it so that you can do something like this: app.py from dash import Dash, html import dash\_ag\_grid as dag import pandas as pd app = Dash(\_\_name\_\_) df = pd.read\_csv( "https://raw.githubusercontent.com/plotly/datasets/master/ag-grid/olympic-winners.csv" ) rowData = df.to\_dict('records') columnDefs = [ { 'field': 'age', 'filter': 'agNumberColumnFilter' }, { 'field': 'country', 'minWidth': …
