angular-date-range-picker

WebJar for angular-date-range-picker

License

License

MIT
Categories

Categories

Angular User Interface Web Frameworks
GroupId

GroupId

org.webjars.bower
ArtifactId

ArtifactId

angular-date-range-picker
Last Version

Last Version

0.4.15
Release Date

Release Date

Type

Type

jar
Description

Description

angular-date-range-picker
WebJar for angular-date-range-picker
Project URL

Project URL

http://webjars.org
Source Code Management

Source Code Management

https://github.com/monterail/angular-date-range-picker

Download angular-date-range-picker

How to add to project

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

Dependencies

compile (4)

Group / Artifact Type Version
org.webjars.bower : angular jar [1.2,1.3)
org.webjars.bower : angular-bindonce jar [0,)
org.webjars.bower : moment jar [2.6.0,2.7)
org.webjars.bower : moment-range jar [1.0.1,1.1)

Project Modules

There are no modules declared in this project.

This project has been discontinued and is no longer supported

Please use angular-mighty-datepicker instead. It's superior in every way, you won't regret it.

Pure Angular Datepicker, without jQuery

Install

bower install angular-date-range-picker

Usage

// require dateRangePicker module as dependency
angular.module('myApp', ['dateRangePicker']);
// specify default date range in controller
$scope.dates = moment().range("2012-11-05", "2013-01-25")
<!-- use 'date-range-picker' directive in view -->
<input type="text" date-range-picker ng-model="dates"/>

Customizations

Simple date picker

You can also select only one date:

<!-- use 'date-range-picker' directive in view -->
<input type="text" date-range-picker ranged="false"/>

Select range options

$scope.rangeSelectOptions = [
  {
    label: "This year",
    range: moment().range(
      moment().startOf("year").startOf("day"),
      moment().endOf("year").startOf("day")
    )
  },
  {
    label: "Last year",
    range: moment().range(
      moment().startOf("year").add(-1, "year").startOf("day"),
      moment().add(-1, "year").endOf("year").startOf("day")
    )
  }
]
<input type="text" date-range-picker ng-model="dates" custom-select-options="rangeSelectOptions" />

Angular version compatibility table

Due to usage of track by $index it is impossible to provide one version for both angular < 1.2 and >= 1.2.

Angular version date-range-picker version
1.2.x 0.3.x
1.1.x 0.2.x
1.0.x 0.2.x

Development

npm install
bower install
grunt watch
open test/index.html

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request
org.webjars.bower

Monterail

Monterail is a close-knit team of 110+ experts delivering meaningful software for startups and businesses.

Versions

Version
0.4.15