practicalmeteor/autoform-bs-daterangepicker

Name: autoform-bs-daterangepicker

Owner: practicalmeteor

Description: Enables usage of bootstrap daterangepicker in autoform

Created: 2015-08-05 05:59:25.0

Updated: 2015-08-05 05:59:26.0

Pushed: 2015-06-03 22:26:55.0

Homepage: null

Size: 178

Language: JavaScript

GitHub Committers

UserMost Recent Commit# Commits

Other Committers

UserEmailMost Recent Commit# Commits

README

autoform-bs-daterangepicker

daterangepicker packaged for Meteor.

Installation

With Meteor 0.9.3 and above, install using:

teor add antalakas:autoform-bs-daterangepicker
Usage
chSchema = new SimpleSchema({

archRange: {
type: [Date],
label: "From - To",
optional: false,
autoform: {
  type: "bootstrap-daterangepicker",
  dateRangePickerValue: moment().add(1, 'days').format("DD/MM/YYYY") + " - " + moment().add(3, 'days').format("DD/MM/YYYY"),
  dateRangePickerOptions: {
    dateLimit: { days: 6 },
    minDate: moment().add(-150, 'days'),
    maxDate:moment().add(6, 'months'),
    startDate: moment().add(1, 'days'),
    endDate: moment().add(3, 'days'),
    timePicker: false,
    format: 'DD/MM/YYYY',
    timePickerIncrement: 30,
    timePicker12Hour: false,
    timePickerSeconds: false
  }
}


.



This work is supported by the National Institutes of Health's National Center for Advancing Translational Sciences, Grant Number U24TR002306. This work is solely the responsibility of the creators and does not necessarily represent the official views of the National Institutes of Health.