angular-bootstrap-datepicker

WebJar for angular-bootstrap-datepicker

License

License

Apache License, Version 2.0
Categories

Categories

Github Development Tools Version Controls Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

github-com-cletourneau-angular-bootstrap-datepicker
Last Version

Last Version

0.3.1
Release Date

Release Date

Type

Type

jar
Description

Description

angular-bootstrap-datepicker
WebJar for angular-bootstrap-datepicker
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/cletourneau/angular-bootstrap-datepicker

Download github-com-cletourneau-angular-bootstrap-datepicker

How to add to project

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

Dependencies

compile (2)

Group / Artifact Type Version
org.webjars.bower : jquery jar [1.7.1,)
org.webjars.bower : bootstrap jar [2.0.4,3.0)

Project Modules

There are no modules declared in this project.

angular-bootstrap-datepicker - AngularJS directives for the bootstrap-datepicker

At the moment, only the "Component" type is supported.


Demo

Here's a working jsfiddle A more dynamic demo of all the options is available for the original bootstrap-datepicker.

Installation

Installation is easy, jQuery, AngularJS and Bootstrap's JS/CSS are required. You can download angular-bootstrap-datepicker via bower: bower install angular-bootstrap-datepicker

When you are done downloading all the dependencies and project files the only remaining part is to add dependencies as an AngularJS module:

angular.module('myModule', ['ng-bootstrap-datepicker']);

You also need to include these files:

<link rel="stylesheet" href="bootstrap/css/bootstrap.css" />
<link rel="stylesheet" href="angular-bootstrap-datepicker.css" />

<script src="jquery.js"></script>
<script src="bootstrap/js/bootstrap.js"></script>
<script src="angular.js"></script>
<script src="angular-bootstrap-datepicker.js" charset="utf-8"></script>

Make sure you use charset="utf-8" in your script tag if your browser (or those of your users) is displaying characters wrong when using another language.

Settings

To use the directive, use the following code :

<input type="text" ng-datepicker ng-options="datepickerOptions" ng-model="date">

ng-datepicker : Indicates you want your input as a date picker.

ng-options : Object of the controller scope containing the options for your date picker.

ng-model : Variable of the controller scope to store the date. The date is currently store as a string, formatted according to the one set in ng-options.

For a working example, see https://github.com/cletourneau/angular-bootstrap-datepicker/blob/master/example/demo.html

Versions

Version
0.3.1