[New Feature] Invert Selection
joex92 opened this issue · comments
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
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