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

Added "setSelection" method to code, tests, and documentation. #727

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

dwcullop
Copy link

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.

Darrin W. Cullop added 3 commits April 18, 2016 07:51
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.
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.
@dwcullop
Copy link
Author

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.

@dwcullop
Copy link
Author

I resolved all the conflicts so the merge, should you choose to take it, should be no problem.

@davidstutz
Copy link
Owner

Can't merge this automatically, will do it manually later. Thanks for the great pull request (regarding tests, documentation etc.)!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants