facebookarchive / fixed-data-table

A React table component designed to allow presenting thousands of rows of data.
http://facebook.github.io/fixed-data-table/
Other
4.3k stars 553 forks source link

Is there any way to highlight the search text in the table? #399

Open phkavitha opened 8 years ago

phkavitha commented 8 years ago

When the user searches for a text in the table, the search text should be highlighted in the result row so that the user knows which column they must look

tkirda commented 8 years ago

@phkavitha You will need to provide custom formatting of a cell and highlight it yourself. Fixed data table only provides generic framework to display data. Search is not part of the component.

dearrrfish commented 8 years ago

When I implementing instant filtering with keyword highlighting, visible rows with highlight formatting cells won't be re-rendered if row indexes don't change. Any help on this behavior?

KamranAsif commented 8 years ago

We've done this! http://schrodinger.github.io/fixed-data-table-2/example-scroll-to.html

We've actually forked this repo because of the lack of updates.

dearrrfish commented 8 years ago

Thanks. Just figured out, I should put logic in cellDataGetter instead of customRenderer.