Skip to content

Instantly share code, notes, and snippets.

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

  • Save AllenFang/2b86082375974d79529a179951cd6cda to your computer and use it in GitHub Desktop.

Select an option

Save AllenFang/2b86082375974d79529a179951cd6cda to your computer and use it in GitHub Desktop.
class SelectFilterWithCondition extends React.Component {
render() {
return (
<BootstrapTable data={ products }>
<TableHeaderColumn dataField='id'>Product ID</TableHeaderColumn>
<TableHeaderColumn dataField='name'>Product Name</TableHeaderColumn>
<TableHeaderColumn dataField='quality' filter={ { type: 'SelectFilter', options: qualityType, condition: 'eq' } }>Product Quality</TableHeaderColumn>
</BootstrapTable>
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment