angular-jquery-timepicker

WebJar for angular-jquery-timepicker

License

License

MIT
Categories

Categories

Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

angular-jquery-timepicker
Last Version

Last Version

0.10.0
Release Date

Release Date

Type

Type

jar
Description

Description

angular-jquery-timepicker
WebJar for angular-jquery-timepicker
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/Recras/angular-jquery-timepicker

Download angular-jquery-timepicker

How to add to project

<!-- https://jarcasting.com/artifacts/org.webjars.bower/angular-jquery-timepicker/ -->
<dependency>
    <groupId>org.webjars.bower</groupId>
    <artifactId>angular-jquery-timepicker</artifactId>
    <version>0.10.0</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.bower/angular-jquery-timepicker/
implementation 'org.webjars.bower:angular-jquery-timepicker:0.10.0'
// https://jarcasting.com/artifacts/org.webjars.bower/angular-jquery-timepicker/
implementation ("org.webjars.bower:angular-jquery-timepicker:0.10.0")
'org.webjars.bower:angular-jquery-timepicker:jar:0.10.0'
<dependency org="org.webjars.bower" name="angular-jquery-timepicker" rev="0.10.0">
  <artifact name="angular-jquery-timepicker" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.bower', module='angular-jquery-timepicker', version='0.10.0')
)
libraryDependencies += "org.webjars.bower" % "angular-jquery-timepicker" % "0.10.0"
[org.webjars.bower/angular-jquery-timepicker "0.10.0"]

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.bower : angular jar [1.3,)
org.webjars.bower : jquery-timepicker-jt jar [1.2,)

Project Modules

There are no modules declared in this project.

angular-jquery-timepicker Build Status

An AngularJS directive for jquery-timepicker

See a demo here

Requirements

Usage

You can use Bower or NPM to install this directive.

bower install angular-jquery-timepicker

or for NPM:

npm install angular-jquery-timepicker

Add the timepicker module as a dependency to your applicatin module:

var myAppModule = angular.module('MyApp', ['ui.timepicker'])

Apply the directive to your form elements. This directive expects ng-model to be a valid javascript Date object (or null).

<input ui-timepicker ng-model="someDateObject">

You can specify a base-date that will be used to initialize the ng-model when it is null

<input ui-timepicker ng-model="someNullObject" base-date"someDateObject">

Configure timepicker at a global level. Use the 'asMoment' to use moment.js instead of Date as the ng-model. Note: moment.js timezones will be discarded.

angular.module('ui.timepicker').value('uiTimepickerConfig',{
  step: 5,
  asMoment: true
});

Adding custom options to timepicker.

$scope.timePickerOptions = {
    step: 20,
    timeFormat: 'g:ia',
    appendTo: 'body'
};

<input ui-timepicker="timePickerOptions" ng-model="someDateObject">
org.webjars.bower

Recras

Versions

Version
0.10.0
0.7.1
0.6.0