Skip to content

Instantly share code, notes, and snippets.

@AllenFang
Created February 12, 2017 10:26
Show Gist options
  • Select an option

  • Save AllenFang/24a90dc0c1e7120800bd2496200ff112 to your computer and use it in GitHub Desktop.

Select an option

Save AllenFang/24a90dc0c1e7120800bd2496200ff112 to your computer and use it in GitHub Desktop.
class TextFilterWithCondition extends React.Component {
render() {
return (
<BootstrapTable data={ products }>
<TableHeaderColumn dataField='id' isKey>Product ID</TableHeaderColumn>
<TableHeaderColumn dataField='name' filter={ { type: 'TextFilter', delay: 1000, condition: 'eq' } }>Product Name</TableHeaderColumn>
<TableHeaderColumn dataField='price'>Product Price</TableHeaderColumn>
</BootstrapTable>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment