mirror of
https://github.com/collinbarrett/FilterLists.git
synced 2026-03-11 09:04:27 +00:00
filter by name by includes (not startswith)
This commit is contained in:
parent
7ba750a680
commit
505b781ec7
1 changed files with 1 additions and 1 deletions
|
|
@ -39,7 +39,7 @@ export class Home extends React.Component<RouteComponentProps<{}>, IFilterListsS
|
|||
Header: "Name",
|
||||
accessor: "name",
|
||||
filterable: true,
|
||||
filterMethod: (filter: any, row: any) => row[filter.id].toUpperCase().startsWith(filter.value.toUpperCase()),
|
||||
filterMethod: (filter: any, row: any) => row[filter.id].toUpperCase().includes(filter.value.toUpperCase()),
|
||||
sortMethod: (a: any, b: any) => a.toUpperCase() > b.toUpperCase() ? 1 : -1
|
||||
},
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue