Pro Pack
Docs HomeProduct SiteSupport
  • Introduction
  • Installation
  • Chart.js
    • Configuration
    • Data Binding
    • Data Labels
  • Dataset Filter Labels
    • Installation
    • Configuration
    • Data Binding
  • DataTables
    • Configuration
    • Data Binding
    • Events
    • Methods
  • Date Range Picker
    • Configuration
    • Data Binding
    • Methods
  • iCheck
    • List
      • Configuration
      • Data Binding
      • Events
    • Filter
      • Configuration
      • Data Binding
  • Select2
    • Configuration
    • Data Binding
    • Events
    • Methods
  • Sparklines
    • Installation
    • Configuration
    • Data Binding
  • Toastr
    • Configuration
  • Web Frameworks
Powered by GitBook
On this page

Was this helpful?

  1. Date Range Picker

Methods

PreviousData BindingNextiCheck

Last updated 3 years ago

Was this helpful?

Date Range for WireBootstrap extends the 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();
wire.ui.component