怎么是“持续时间选择器”?叫它,它存在吗? [英] How's a "duration picker" called and does it exist?

查看:95
本文介绍了怎么是“持续时间选择器”?叫它,它存在吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找类似持续时间选择器的东西。因为谷歌搜索持续时间选择器并没有给我任何结果,我想知道是否有一个技术名称,它可以帮助搜索它。时间选择器和时间跨度选择器目前没有带来任何帮助。

I'm looking for something like a "duration picker". Because googling "duration picker" doesn't give me any result, I would like to know if there is a technical name for it which can help in searching it. Time picker and Time Span picker doesn't bring anything helpful at the moment.

如果存在类似的东西并且有人可以指出我,那就可以了,而不是技术名称。

If something similar exists and someone can point me to that, it's ok instead of the technical name.

更新1:

抱歉,我完全忘记解释我的意思通过持续时间选择器。
这不是一个时间选择器,而是一种选择持续时间的方式,而不是相对于约会。例如,烹饪给定的食谱需要(持续时间)4小时10分钟。从这里到那里旅行需要4天10个小时。

Sorry I completely forgot to explain what I mean by duration picker. It's not a time picker, but a way to choose how much time will last doing something, not relative to a date. For example, cooking a given recipe will take (duration) 4 hours and 10 minutes. Traveling from here to there will take 4 days and 10 hours.

我的基本想法是为更大单位配置选择器的可能性(可能是天数) ,持续时间将在内部以秒表示。所以我可以说 20天23小时0分或者如果更大单位是天(例如软件开发工作),我可以写 150小时30分0秒
如果隐藏一些较小的字段,例如分钟/秒,那将是很好的选择。

My basic idea is the possibility to configure the picker for the "bigger" unit to use (days probably), the duration will be expressed in seconds internally. So I can say 20 days and 23 hours and 0 minutes or if the "bigger" unit is days (for a software development job for example), I can write 150 hours and 30 minutes and 0 seconds. It would be nice the option to hide some smaller fields, like minutes/seconds.

更新2:

一个非常简单的例子:

A very simple ui example:

推荐答案

Bootstrap持续时间选择器 - Github npm

Bootstrap Duration picker - Github, npm.

依赖项:jQuery和Bootstrap 3(仅限样式)。

Dependencies: jQuery and Bootstrap 3 (for styling only).

这篇关于怎么是“持续时间选择器”?叫它,它存在吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆