Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var FilterOptions = React.createClass({
- changeOption: function(type, e) {
- var val = e.target.value;
- this.props.changeOption(val, type);
- },
- render: function() {
- return (
- <div className="filter-options">
- <div className="filter-option">
- <select id="product" name="Product" value={this.props.product} onChange={this.changeOption.bind(this, 'product')}>
- <option value=''>Product</option>
- {this.props.productOptions.map(function(option) {
- return (<option key={option} value={option}>{option}</option>)
- })}
- </select>
- </div>
- </div>
- );
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement