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

[New Feature] Invert Selection #883

Open
joex92 opened this issue Nov 23, 2022 · 1 comment
Open

[New Feature] Invert Selection #883

joex92 opened this issue Nov 23, 2022 · 1 comment

Comments

@joex92
Copy link

joex92 commented Nov 23, 2022

What is the current behavior?

options {
  // ...
  header: ['checkAll', 'uncheckAll'], // (false | string | array) False, custom string or array indicating which links to show in the header & in what order.
  // ...
}

What is the expected behavior?

options {
  // ...
header: ['checkAll', 'uncheckAll','checkInvert'], // (false | string | array) False, custom string or array indicating which links to show in the header & in what order.
  // ...
}

when clicking Check Invert, as it's called, uncheck checked items and check uncheked items.

If you are requesting a new or changed feature, please provide a rationale

Sorry if this was already requested, but as I see on the code there isn't a way to do it.

It would be useful for many applications, e.g., if the multiselection is a filter and you need to do a quick filtering invertion you wouldn't need to uncheck all and recheck the previously unchecked or, viceversa, check all to to uncheck the previously checked.

Will you submit a corresponding Pull Request to fix the bug or implement the feature?

idk if this applies

Please tell us about your setup

  • Version: 3.0.1
  • Browser: Edge
  • Other frameworks in use: UI & Finger
@SteveTheTechie
Copy link
Contributor

SteveTheTechie commented Jan 4, 2023

This functionality already exists in the widget. However, it is referred to as flip, not invert. I know because I implemented it. Please look at the wiki for details on it.

Look here for "flipAll": https://github.com/ehynds/jquery-ui-multiselect-widget/wiki/Customization

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

No branches or pull requests

2 participants