Material-table: Filter data in table on press enter

Created on 18 Oct 2019  路  4Comments  路  Source: mbrn/material-table

I don't want to Override every Filter or create a new separate Filter!

wontfix

Most helpful comment

No, the problem is that when i use remote data the filter uses a debounce interval & i don't want that, i want to filter data on enter not by itself...

All 4 comments

Not sure I completely understood your problem.
But If you want to enable the filtering row when you click Enter you could make the condition a variable and change it in an eventListener somewhere else?

<MaterialTable
...
options={{
   filtering: enableFilteringVariable // Default false
}}
/>

window.addEventListener('keypress', function (e) {
    if (e.keyCode === 13) {
        enableFilteringVariable = !enableFilteringVariable ;
    }
}, false);

No, the problem is that when i use remote data the filter uses a debounce interval & i don't want that, i want to filter data on enter not by itself...

No, the problem is that when i use remote data the filter uses a debounce interval & i don't want that, i want to filter data on enter not by itself...

Kwasik-com you got the solution for searching on press enter?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.

Was this page helpful?
0 / 5 - 0 ratings