knockout-daterangepicker
v0.0.9
Published
[![Build Status](https://travis-ci.org/sensortower/daterangepicker.svg?branch=master)](https://travis-ci.org/sensortower/daterangepicker) [![Join the chat at https://gitter.im/sensortower/daterangepicker](https://badges.gitter.im/Join%20Chat.svg)](https:/
Downloads
869
Readme
daterangepicker
Notable Features
- Day / Week / Month / Quarter / Year calendar modes
- Single calendar mode
- Customazible & extendable
- Integration with jQuery & Knockout
Dependencies
- jquery
- moment
- knockout
Documentation
Documentation & Examples are available on our website.
Download
Install
bower install knockout-daterangepicker --save
Usage
With jQuery
$("input").daterangepicker({
minDate: moment().subtract(2, 'years'),
callback: function (startDate, endDate, period) {
$(this).val(startDate.format('L') + ' – ' + endDate.format('L'));
}
});
With Knockout.js
<input type="text" data-bind="daterangepicker: dateRange"/>
ko.applyBindings({
dateRange: ko.observable([moment().subtract(1, 'month'), moment()])
});
Development
git clone [email protected]:sensortower/daterangepicker.git && cd daterangepicker
npm install && bower install
gulp serve
Copyright
Copyright © 2015 SensorTower Inc. See LICENSE for further details.