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

对选项组增加按值选中功能 #15

Merged
merged 2 commits into from Sep 3, 2012

Conversation

mytharcher
Copy link
Collaborator

BoxGroup增加原型方法selectByValues,该方法接受一个数组参数,这个数组包含每一个要选中项的值,最后遍历所有值,如果该值在group中有对应选项,则选中该选项,否则取消选中。例:

cbGroup.selectByValues([2, 3]);

对于单选组,如果传入包含多值的数组,只会选中数组中最后一个值。

@erik168
Copy link
Owner

erik168 commented Sep 3, 2012

我先接受你的request,后续我会+上setValue方法,和getValue方法对应,值为逗号分割的string形式

erik168 added a commit that referenced this pull request Sep 3, 2012
对选项组增加selectByValues按值选中功能
@erik168 erik168 merged commit 35d4e76 into erik168:master Sep 3, 2012
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

2 participants