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

Feat/add reset default prop selected filters component #1725

Conversation

mohdashraf010897
Copy link
Member

@mohdashraf010897 mohdashraf010897 commented Jun 22, 2021

Description:
Added resetToDefault prop in SelectedFilters component, When resetToDefault is set to true, then it would set the filter value to the defaultValue.
The default value for resetToDefault would be false.

Libraries Affected 👍

  • RS: WEB
  • RS: VUE

Feature Request PR

Notio Card

web
Demo with resetToDefault prop
Demo w/o resetToDefault prop
MultiDropdownRange Demo with resetToDefault prop

vue
Demo with resetToDefault prop
Demo w/o resetToDefault prop
Range Input Demo with resetToDefault prop

Loom Demo: Latest Implementation

Loom Demo

Docs PR

Copy link
Contributor

@bietkul bietkul left a comment

Choose a reason for hiding this comment

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

@mohdashraf010897 There are some formatting changes. You can sync your branch with next branch and then fix the changes.

packages/web/src/components/basic/SelectedFilters.js Outdated Show resolved Hide resolved
packages/vue/src/components/basic/SelectedFilters.jsx Outdated Show resolved Hide resolved
packages/vue/src/components/basic/SelectedFilters.jsx Outdated Show resolved Hide resolved
packages/vue/src/components/basic/SelectedFilters.jsx Outdated Show resolved Hide resolved
packages/vue/src/utils/index.js Outdated Show resolved Hide resolved
packages/web/src/components/basic/SelectedFilters.js Outdated Show resolved Hide resolved
packages/web/src/components/basic/SelectedFilters.js Outdated Show resolved Hide resolved
packages/web/src/utils/index.js Outdated Show resolved Hide resolved
packages/web/examples/MultiDropdownList/src/index.js Outdated Show resolved Hide resolved
packages/web/src/components/range/RangeInput.js Outdated Show resolved Hide resolved
packages/web/src/components/range/RangeInput.js Outdated Show resolved Hide resolved
packages/web/src/components/range/RangeInput.js Outdated Show resolved Hide resolved
packages/vue/src/components/basic/SelectedFilters.jsx Outdated Show resolved Hide resolved
packages/web/src/utils/index.js Outdated Show resolved Hide resolved
packages/vue/src/components/basic/SelectedFilters.jsx Outdated Show resolved Hide resolved
packages/web/src/components/basic/SelectedFilters.js Outdated Show resolved Hide resolved
packages/web/src/components/basic/SelectedFilters.js Outdated Show resolved Hide resolved
packages/vue/src/utils/index.js Outdated Show resolved Hide resolved
@mohdashraf010897
Copy link
Member Author

@@ -30,6 +31,7 @@ const SelectedFilters = {
selectedValues: this.selectedValues,
clearValues: this.clearValues,
setValue: this.setValue,
resetValuesToDefault: this.resetValuesToDefault,
Copy link
Contributor

Choose a reason for hiding this comment

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

@mohdashraf010897 You would have to update the documentation for it,

Copy link
Member Author

Choose a reason for hiding this comment

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

Screenshot 2021-06-28 at 11 12 29 PM

This is how docs have it until now, would need writeup and content to add to the doc...

packages/web/examples/CategorySearch/src/index.js Outdated Show resolved Hide resolved
packages/web/src/components/basic/SelectedFilters.js Outdated Show resolved Hide resolved
packages/web/src/components/basic/SelectedFilters.js Outdated Show resolved Hide resolved
Copy link
Contributor

@bietkul bietkul left a comment

Choose a reason for hiding this comment

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

@mohdashraf010897 Looks good now 👍

@bietkul bietkul merged commit 63592b9 into appbaseio:next Jun 29, 2021
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.

None yet

3 participants