沿日期和时间滚动的Javascript滑块 [英] Javascript slider that scrolls along both dates and times

查看:99
本文介绍了沿日期和时间滚动的Javascript滑块的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经看到了一些选择日期范围的jQuery滑块的好例子: http://ghusse.github.com/jQRangeSlider/stable/demo/

I've seen some nice examples of jQuery sliders that select date ranges: http://ghusse.github.com/jQRangeSlider/stable/demo/

和时间范围: http://marcneuwirth.com/blog/2011/05/22/revisiting-the-jquery-ui-time-slider/

但是我正在寻找一种能够选择日期范围的月份,日期,分钟.能够同时用作日期范围选择器和普通滑动条会很棒.

But I'm looking for something that will be able to select date ranges down to the month, day, minute. It would be great to be able to have it as both a date range selector and a plain slider.

有人看到这样的实现吗?使用Unix时间作为我的值的普通jQuery UI滑块是否有意义?

Has anyone seen an implementation like that? Would the normal jQuery UI slider using Unix time as my values make sense?

推荐答案

万一有人发现此线程,我可以通过将时间戳转换为Unix时间,然后按月分解数据来实现.当前月份的滑块会扩展到屏幕的整个宽度,因此您可以通过擦洗来选择尽可能多的内容.箭头键完成其余的操作.

In case anyone finds this thread, I was able to accomplish this by converting my time stamps to unix time and then breaking up my data by month. The current month's slider expands to the full-width of the screen so you can select as much as possible by scrubbing. Arrow keys accomplish the rest.

这篇关于沿日期和时间滚动的Javascript滑块的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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