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

OnClick handler for Picker #39

Open
warmhug opened this issue Sep 14, 2017 · 1 comment
Open

OnClick handler for Picker #39

warmhug opened this issue Sep 14, 2017 · 1 comment

Comments

@warmhug
Copy link
Collaborator

warmhug commented Sep 14, 2017

ref ant-design/ant-design-mobile#1841

What problem does this feature solve?

The user can change the value of the Picker/ PickerView/ DatePicker by clicking the value and scroll to that value besides scrolling the picker.

What does the proposed API look like?

<Picker onPickerClick={(value) => console.log(value) />

onPickerClick will return the value that is clicked.

@vipcxj
Copy link

vipcxj commented Jul 26, 2019

就算不给做这个,为PickerItem加个OnClick属性,Picker则提供一个ScrollTo方法也好啊

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