Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
filter and sort
filterElements(filter, e) {
sortElements(sort, e) {
renderLoadButtons() {
return, d => <Button key={} active={this.props.type == d.value} onClick={ElementActions.loadElements.bind(this, d.value)}>{}</Button>, this)
renderFilterButtons() {
return, d => <Button key={} active={this.props.filter == d.value} onClick={this.filterElements.bind(this, d.value)}>{}</Button>, this)
renderSortButtons() {
return, d => <Button key={} active={this.props.sort == d.value} onClick={this.sortElements.bind(this, d.value)}>{}</Button>, this)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment