I'm using react-table
and have a filter method for each column which works. However, I cannot seem to figure out how I actually style the filter input field - it's white now and blends in with the background.
Here's a codepen where the "Last Name" column is filterable, with an input field: https://codepen.io/anon/pen/QgOdOp?editors=0010
I want to add some semantic styling to this input field, such as this:
<div className="ui icon input">
// Input values would go here
<i className="search icon" />
</div>
But I do not seem to know how to bind the input value to the column itself.
I've tried the following in the specific column, but it doesn't render anything:
{
Header: 'Last Name',
filterable: true,
id: 'lastName',
accessor: d => d.lastName
Filter: Cellinfo => (
<div className="ui icon input">
<select onChange={event => onFiltersChange(event.target.value)} value={filter ? filter.value : ''}></select>
<i className="search icon" />
</div>
)
}
Last Name
column? – Mafia