komarovalexander / ka-table

Lightweight MIT React Table component with Sorting, Filtering, Grouping, Virtualization, Editing and many more
http://ka-table.com
MIT License
788 stars 58 forks source link

Add rowData to filter function #326

Closed komarovalexander closed 1 year ago

komarovalexander commented 1 year ago

new rowData parameter added to give user access to rowData in that function

  filter={(props) => {
    if (props.column.key === 'column1') {
        return (value: number[], filterRowValue: number, rowData: any) =>  //... ;
    }
  }}