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

Ability to add custom navigation items on DateTimePicker #211

Closed
1 of 2 tasks
lingzlu opened this issue Aug 29, 2020 · 0 comments
Closed
1 of 2 tasks

Ability to add custom navigation items on DateTimePicker #211

lingzlu opened this issue Aug 29, 2020 · 0 comments

Comments

@lingzlu
Copy link
Contributor

lingzlu commented Aug 29, 2020

Platform

  • iOS
  • macOS

Describe the feature that you would like added

Currently, DateTimePicker allows customization of the picker toolbars through DateTimePicker.Titles. Would it be possible to add support to have custom left/right navigation items for the date picker as well?

What component or utility would this be added to

DateTimePicker

Have you discussed this feature with our team, and if so, who

No

Additional context/screenshots

For our use case, we want to include the "Remove" or "Clear" button on the date picker so the users could un-set the selected date. In the case that the date hasn't been set, we want it to include a "Cancel" button. Currently, the only way to dismiss the date picker is to pick a date or tap outside of picker area, I think it's a bit more user friendly to have a dedicate cancel button.

Idea: Due to varies use case of the components, perhaps it's more flexible to introduce a new component for the date picker toolbar, something like FluentUI ToolBar/NavigationBar component. The wrapper classDateTimePicker.Titles is not very intuitive as there are too many titles/subtitles, and it gets a little confusing. I actually have to try out some test string on the properties to figure out where they are applied.

harrieshin pushed a commit that referenced this issue Jun 17, 2021
I have added the possibility to provide left and right UIBarButtons to customize the navigationBar of the DatePickerControl and DateTimePickerControl.
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