A wrapper for linagora/clockpi

angular-clockpicker

This library use clockpicker and exposes a directive to use it. We do not use the clockpicker of weareoutman becauseit does not handle correctly twelvehour format and it is not supported. In order to correct this bug, we create a fork on linagora github.

Usage

You can take a look at the index.html and app.js in the example folder. But to use angular-clockpicker, you just need to add the attribute clockpicker-wrapper on a input field. This one will be made read-only on mobile devices in order to avoir the virtual keyboard to popup when a user touch the field. You can specify option of clock-picker documented here by using the clockpicker-options attribute.

<input type='text' data-ng-model='test' data-lng-clockpicker></input>

Moreover if you set nativeOnMobile in clockpicker-options, on mobile devices the clockpicker will not be used and the system timepicker will be used instead.

Changelog

1.1.1

Renaming clockpicker-wrapper directive into lng-clockpicker

Add nativeOnMobile options in order to delegate to system timepicker on mobile devices

Correct update of view on mutation of moment date

Change dependency angular-moment version to beta

1.2.0

Remove moment local convertion when bind to view

版权声明:

1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。
2、网站不提供资料下载,如需下载请到原作者页面进行下载。