A component for FluentDatePicker and FluentTimePicker #3155
Replies: 4 comments
-
Beta Was this translation helpful? Give feedback.
-
Hi @hml-coder Thanks for the suggestion. I have also implemented it this way, but my suggestion would be to create a component with both selection options (date + time) that only has one binding variable. This would make our work a little easier, because we wouldn't have to manage two binding variables but only one. Regards |
Beta Was this translation helpful? Give feedback.
-
Hi pc - Since the Disclaimer: I’m also a user of the Fluent components so some of this is guesswork. This worked for me.
Example:
|
Beta Was this translation helpful? Give feedback.
-
Hi @hml-coder That is an interesting idea. Thanks for the tip. Regards |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have not seen a component that contains both the date and the time, but two independent components are provided: FluentDatePicker and FluentTimePicker.
This brings a few challenges when using it, because the time is usually bound to the date and if you use two properties here (e.g. date and time), a date is also automatically stored in the time property that does not necessarily correspond to the selected date.
You are not even aware of this behavior in your examples because you only output the time without the date. In this example I have selected the date of 10-01, the date of the time component has not changed of course, because the current date was set there during initialization and that is 11-01 today.
It would be nice to have a component for date and time selection that only has one binding variable (will probably be of type DateTime?). This would make handling the component and managing the model (property) in the program code much easier. Currently, you either have to implement two separate properties (date and time), or just one, but then merge these two binding variables into one property.
Thanks
pc
Beta Was this translation helpful? Give feedback.
All reactions