Methods

Date Range for WireBootstrap extends the wire.ui.componentarrow-up-right class. As such, it inherits all its base methods.

The following methods are added to Date Range for WireBootstrap.

Name

Description

val

Get currently selected range. Will return a single value for single dates or an array for ranges based on whether daterangepicker.singleDatePicker is set.

The following will set the val variable to a single date that has been selected in the component based on the singleDatePicker setting.

const range = new wire.daterangepicker().render('#range', {
    ...
    daterangepicker: { singleDatePicker: true }
});

const val = range.val();

Last updated

Was this helpful?