Material-table: search from external field

Created on 1 May 2019  Â·  4Comments  Â·  Source: mbrn/material-table

I would like to have my search field external to the table. For remote datasources this is fine as I can intercept the query object and modify it, but for local data objects I cannot apply the filter it seems. Is there a way to do this?

I would also like to do the same for filters if possible also.

Cheers
BB

help wanted

Most helpful comment

Revisiting this. Why isn't this an included feature?

All 4 comments

Hi @blackbadgerltd ,

Look at 3rd example. It lets you to override filtering and search algorithm. So you can search on external fields.

https://material-table.com/#/docs/features/filtering

Cheers, I was hoping for more of a ‘set the search text’ and let the magic happen, otherwise I would have to reimplement the standard search on every column, and filtering.

On 1 May 2019, at 20:55, Mehmet Baran notifications@github.com wrote:

Hi @blackbadgerltd ,

Look at 3rd example. It lets you to override filtering and search algorithm. So you can search on external fields.

https://material-table.com/#/docs/features/filtering

—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.

@blackbadgerltd Can you tell me how you apply the filter? although it is possible to use external fields, the search is only performed when the search field changes. I couldn't find a way.

Cheers

Revisiting this. Why isn't this an included feature?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ModPhoenix picture ModPhoenix  Â·  3Comments

balibou picture balibou  Â·  3Comments

KKrisu picture KKrisu  Â·  3Comments

behrouz-s picture behrouz-s  Â·  3Comments

terapepo picture terapepo  Â·  3Comments