• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

mattkrick/lolliclock: A material design timepicker based on clockpicker

原作者: [db:作者] 来自: 网络 收藏 邀请

开源软件名称(OpenSource Name):

mattkrick/lolliclock

开源软件地址(OpenSource Url):

https://github.com/mattkrick/lolliclock

开源编程语言(OpenSource Language):

JavaScript 63.8%

开源软件介绍(OpenSource Introduction):

Lolliclock

A material design timepicker based on clockpicker

No longer maintained I'll still accept PRs. The javascript world has changed a lot in the last year! ES2015, npm3, react, webpack, and css-modules are looking like the new rulers and it just doesn't make sense to maintain a fun little project like this. For a similar component, please see the time picker in material-ui.

Autoclose false Autoclose true hour24 true

#Basics Internals are based off clockpicker, with a million tiny UX changes.

#Usage

  1. Install jquery
  2. Add the lolliclock .css and .js to your project.
  3. Extend your input field with the .lolliclock method including arguments:
<input id="pick-a-time"></input>
<script>
	$('#pick-a-time').lolliclock({autoclose:true});
</script>
  1. Optional: Run your validation and server scripts on the auto-generated datetime field, which is the name or id of your input field with a "-export" suffix
document.getElementById('pick-a-time-export')

#Features ###autoclose False (default) includes the Cancel/OK buttons at the bottom. ###hour24 False (default) change to 24 hours system.

###datetime field Most backend folks like to save times as dates because they're a breeze to work with. This timepicker creates a hidden input which is dynamically named by putting '-export' at the end of your input field. Now you can use realtime validation or push directly to a database without first converting to a JS date object. If your input has a name or Id of pick-a-time, run logic against pick-a-time-export

###animations It looks pretty great

#Versions 0.2.0 - Fixed IE/Safari date bug, added meteor pkg, added 'change' trigger on input field 0.1.0 - Initial commit

#License MIT - fork away!




鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap