Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implemented filterable store decorator #39

Merged
merged 4 commits into from
Oct 22, 2015
Merged

Implemented filterable store decorator #39

merged 4 commits into from
Oct 22, 2015

Conversation

rthewhite
Copy link
Contributor

No description provided.

} from '../utils';

export class FilterableStoreBehavior extends Behavior {
constructor(instance, {collection} = {}) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be nice if for SortableStore, FilterableStore and PaginatableStore we could also configure the transformerWeight. Could easily be done by extracting transformerWeight from the config like we do with collection.

Doesnt have to be done with this PR though.

describe('onFilterClear', () => {
it('When clearing a filter items should return to original state', () => {
behavior.onFilterChange('nameFilter', {
property: 'name',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is still old style

tommyminds added a commit that referenced this pull request Oct 22, 2015
Implemented filterable store decorator
@tommyminds tommyminds merged commit 3115827 into sbp-archive:master Oct 22, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants