-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Added "setSelection" method to code, tests, and documentation. #727
base: master
Are you sure you want to change the base?
Conversation
The "setSelection" method allows an explicit list of options to be set. Deselected options in the provided list will be selected and selection options that are not in the provided list be deselected. Internally, it delegates to the "select" and "deselect" methods and gives the caller the same option for firing the onChange notification. The testing suite has been updated to validate the new feature. The tests make sure that the selection changes as it is supposed to, the onChange notification fires appropriately, and doesn't fire when requested not to do so. Finally, the documentation page has been updated to show how to use this feature with working and tested examples that are based off of the other ones already provided.
This reverts commit ebd154d.
The "setSelection" method allows an explicit list of options to be set. Deselected options in the provided list will be selected and selection options that are not in the provided list be deselected. Internally, it delegates to the "select" and "deselect" methods and gives the caller the same option for firing the onChange notification. The testing suite has been updated to validate the new feature. The tests make sure that the selection changes as it is supposed to, the onChange notification fires appropriately, and doesn't fire when requested not to do so. Finally, the documentation page has been updated to show how to use this feature with working and tested examples that are based off of the other ones already provided.
My first commit had a million white space changes because of my editor settings. I didn't want to submit those changes, so I rolled it back, and submitted a new one that only has the code additions that I made. That's why there are 3 commits instead of just 1. Sorry for the inconvenience. |
I resolved all the conflicts so the merge, should you choose to take it, should be no problem. |
Can't merge this automatically, will do it manually later. Thanks for the great pull request (regarding tests, documentation etc.)! |
The "setSelection" method allows an explicit list of options to be set.
Deselected options in the provided list will be selected and selection
options that are not in the provided list be deselected. Internally, it
delegates to the "select" and "deselect" methods and gives the caller
the same option for firing the onChange notification.
The testing suite has been updated to validate the new feature. The
tests make sure that the selection changes as it is supposed to, the
onChange notification fires appropriately, and doesn't fire when
requested not to do so.
Finally, the documentation page has been updated to show how to use this
feature with working and tested examples that are based off of the other
ones already provided.