Replies: 4 comments
-
I like the idea here, I'm sure this is going to be complicated to figure out how to best do this from an input standpoint. Do we have text on the page that represents the value, with a link to edit the value and a text field that you can enter freeform text into that tries to get translated (and has validation that warns you if it's not valid) -- or do we have some sort of series of number inputs for years, months, days, hours, minutes, seconds? |
Beta Was this translation helpful? Give feedback.
-
hey, (sorry for the delay - I am in GMT +2) |
Beta Was this translation helpful? Give feedback.
-
Have you seen this done anywhere else that you liked? |
Beta Was this translation helpful? Give feedback.
-
This is done in MatLAB like this https://www.mathworks.com/help/matlab/ref/duration.html#responsive_offcanvas |
Beta Was this translation helpful? Give feedback.
-
Problem
There are times when you need to save the Duration of say an event. The Time field cannot cater to this need, as the it's purpose is to pinpoint to a specific time in the 24 day. The Duration Field would be able to hold values of any Duration of time. For example assume we have an event that lasted 3days 1hr 35min.
Lets say we have a field EventStart : DateTime and an EventEnd : DateTime, the EventDuration field would be able to hold the value of EventEnd - EventStart.
Another example would be when we have a lets say Event like Burning Man. We would be able to set the Duration of the Event.
Proposed Solution
The proposed solution would be to add a Duration Field type which will keep its value in seconds elapsed and when displayed the value would be presented formatted in different ways.
This could be core functionality, or part of an Pods Extended Field Types Component as a collection of additional Field Types.
Beta Was this translation helpful? Give feedback.
All reactions