Skip to content

Instantly share code, notes, and snippets.

@AllenFang
Created October 28, 2016 15:40
Show Gist options
  • Select an option

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

Select an option

Save AllenFang/ca19ac425f0e99f2caa5d4ec2317b779 to your computer and use it in GitHub Desktop.
class RegexFilter extends React.Component {
render() {
return (
<BootstrapTable data={ products }>
<TableHeaderColumn dataField='id' isKey>Product ID</TableHeaderColumn>
<TableHeaderColumn dataField='name' filter={ { type: 'RegexFilter', delay: 1000 } }>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