1 Star 1 Fork 0

jin_ming_2006 / angularjs-timepicker

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
README.md 931 Bytes
一键复制 编辑 原始数据 按行查看 历史
jin_ming_2006 提交于 2015-12-03 13:49 . polish readme.md

angularjs-timepicker

AngularJS directive of timepicker and datepicker with IOS alarm style. You can fit it in your mobile html5 app for ios style animation feel timepicker. It is a base. You can decorate your own style timepicker by modifying css.

##Guidance:

###Run the demo:

  1. Please install a webserver locally. Put the files in web root.
  2. Open index.html by http://127.0.0.1/xxxx (xxxx is up to your web server port) with chrome
  3. config chrome to view page in device mode. (Reason: touch event handler can only be responded in mobile device.)

###How to fit the directive in your code Please check the demo code. Just simply put the directive in your html desired position:

<timepicker hour='hour' minute='minute'></timepicker>

note: two-way data binding $scope.hour and $scope.minute by 'hour' and 'minute' property

timepicker demo

JavaScript
1
https://gitee.com/jin_ming_2006/angularjs-timepicker.git
git@gitee.com:jin_ming_2006/angularjs-timepicker.git
jin_ming_2006
angularjs-timepicker
angularjs-timepicker
master

搜索帮助