fluentui icon indicating copy to clipboard operation
fluentui copied to clipboard

Web DatePicker: Time selection

Open gavinbarron opened this issue 7 years ago • 55 comments

I would like a web implementation of a time picker.

I believe that this would be an expansion of the current web DatePicker as the iOS and Android controls are DateTimePickers. https://developer.microsoft.com/en-us/fabric#/controls/web/datepicker

No, I have not discussed this with the team.

Additional context/screenshots https://developer.microsoft.com/en-us/fabric#/controls/ios/date-time-picker https://developer.microsoft.com/en-us/fabric#/controls/android/date-time-picker

gavinbarron avatar Jun 21 '19 15:06 gavinbarron

@gavinbarron thank you for submitting a feature request. TimePicker is an ask we have been receiving recently. We will add it to our backlog review, and discuss it within the team. Please feel free to check back here or post a comment.

cc: @micahgodbolt @lorejoh12 (coming from the Teams thread where we discussed a Calendar input with time input included : FYI

aftab-hassan avatar Jun 21 '19 18:06 aftab-hassan

TimePicker is an ask we have been receiving recently

What about DateTimePicker? It would be nice to have a single control instead of manage two controls for a single Date object.

chriskuech avatar Jul 03 '19 16:07 chriskuech

We would also welcome an official UI Fabric time picker component to use in our product. Preferably independent of the Calendar or DatePicker components.

htryggva avatar Jul 11 '19 08:07 htryggva

In my opinion there are use cases for both a time picker and datetime picker in addition to the DatePicker.

The MWF Datetime picker control can be configured in Date Picker, DateTime Picker, and Time Picker modes.

Given the current state of the UI Fabric Web controls library I'd suggest that an independent TimePicker control be shipped initially as this would not imply or need any interface change to DatePicker. If a consumer needs a Date Time Picker it should be trivial to compose one with these two controls. A future update could deliver a composite control as part of the library.

Heck, I'd even be happy to put my hand up and write the composed control.

On Thu, Jul 11, 2019, 1:17 AM Hlynur Tryggvason [email protected] wrote:

We would also welcome an official UI Fabric time picker component to use in our product. Preferably independent of the Calendar or DatePicker components.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/OfficeDev/office-ui-fabric-react/issues/9545?email_source=notifications&email_token=ABWK6HDIQ2U6HYFNGJJI4CTP63UBNA5CNFSM4H2S4YDKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODZV47DQ#issuecomment-510381966, or mute the thread https://github.com/notifications/unsubscribe-auth/ABWK6HCSAVCB4YXWEOUUAP3P63UBNANCNFSM4H2S4YDA .

gavinbarron avatar Jul 11 '19 14:07 gavinbarron

Most teams I talk to say that if they need date and time picking that they will create an HOC that combines a date picker and some sort of time picking (dropdowns usually). This is how outlook is currently doing it, so I don't think design is content with that solution and isn't investing in something different.

If it ain't broke, don't fix it.

micahgodbolt avatar Jul 11 '19 16:07 micahgodbolt

If it ain't broke, don't fix it.

Makes sense not to change the existing component--but why not merge the HOC back into Fabric? It's a generic enough requirement that HTML even supports datetime inputs natively.

chriskuech avatar Jul 11 '19 17:07 chriskuech

The HTML version is quite similar to ours in the picking experience.

image

The main difference is that they place the time picking inside of the input rather than separate controls.

image

As far as canonizing something in Fabric, it's possible we'll get there eventually. But its not a huge priority due to the ability to easily create a usable control yourself.....which also gives you flexibility to suit it to your application needs.

micahgodbolt avatar Jul 11 '19 18:07 micahgodbolt

Also interested in a DateTime picker control. Is this already planned? Just wondering whether I should find an alternative time picker in the mean time.

Thanks!

tomasro27 avatar Sep 28 '19 21:09 tomasro27

Would love to see a DateTime control as well. Or even a separate TimePicker. Is this work on the backlog?

dehoward avatar Nov 16 '19 00:11 dehoward

Yammer is also interested in either a combined DateTimePicker, or a separate TimePicker component.

alxHenry avatar Dec 10 '19 19:12 alxHenry

It would be great to have a TimePicker component

georginaso avatar Feb 18 '20 15:02 georginaso

I am using web version of Fluent UI react version 7 in my web application.

I am not able to find time picker control yet. Are you planning to release this timepicker component?

agnihotriketan avatar Apr 22 '20 10:04 agnihotriketan

What's the update on timePicker? Is there a plan for it to be developed in near future? I and my team have chosen fabric and so far find it great, just a catch that we get to have a timePicker which is a requirement from our client. Will really appreciate if its added soon.

natashajaved avatar May 19 '20 19:05 natashajaved

Hey guys, any updates on this? This is really needed feature

kamil7x avatar Sep 18 '20 11:09 kamil7x

Is this a work in progress component? Any updates?

vixeven avatar Oct 29 '20 10:10 vixeven

Interested in an update as well

KatieProchilo avatar Dec 01 '20 21:12 KatieProchilo

We are using fluent-ui in our project. We needed Timepicker control with Datepicker. Is there any updates on this? We are really looking forward it. If no updates then what can be used instead of it?

Shraddha-113 avatar Jan 04 '21 05:01 Shraddha-113

I don't think this is something we currently have on our roadmap, but @JustSlone or @paulgildea (or @lorejoh12 who worked on the DatePicker a lot) should confirm.

ecraig12345 avatar Jan 05 '21 01:01 ecraig12345

For now, our team is using the Date Picker and then a TextField next to it with the type="time". This is similar to miacahgodbolt's suggestion above. It would be nice to have one control, but it works at least. Happy coding!

DigitalMystery avatar Jan 05 '21 01:01 DigitalMystery

Yeah, sorry this is not on our roadmap. It does make sense as a component, and if @lorejoh12 is available to work with someone on a community contribution that may be possible.

As for alternatives, one possibility is the interaction used in Outlook Web, which is an editable field with an expandable menu image

P.S. If you are interested in seeing this component please 👍 the issue. it helps folks decide what component is good to add

JustSlone avatar Jan 05 '21 04:01 JustSlone