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
User | Most Recent Commit | # Commits |
---|
Other Committers
User | Most Recent Commit | # Commits |
---|
daterangepicker packaged for Meteor.
With Meteor 0.9.3 and above, install using:
teor add antalakas:autoform-bs-daterangepicker
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
}
}
.