Data Binding

The data map for Date Range Picker for WireBootstrap is listed below. The component expects these field names in its data configuration.

Properties

Name

Description

startDate

1 day ago

The start date for the selected range

endDate

today

The end date for the selected range

const data = {
   startDate: moment().subtract(7, "days"),
   endDate: moment().subtract(1, "days")
}
const range = new wire.daterangepicker().render('#range', {
  datamap: config 
});

Alternatively, these values can be set directly.

const range = new wire.daterangepicker().render('#range', {
   startDate: moment().subtract(7, "days"),
   endDate: moment().subtract(1, "days"),
});

Last updated