Skip to content

mattiasarro/jquery-ui-daterange-draggable

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 

jquery-ui-daterange-draggable

Facilitates selecting two dates by dragging through the jQuery UI Datepicker. Make sure you have jQuery and jQuery UI (with Selectable & Draggable modules) loaded.

Screenshot

screenshot of jquery-ui-daterange-draggable in action

Usage

DaterangeSelector({
      selector: "#datepicker", 
      nr_months: 2, // display 2 Datepicker months
      start_date: function () {
        return(new Date()); // beginning of current selection
      },
      end_date: () -> (
        return(new Date()); // end of current selection
      ),
      start_date_selected: function(time) { // callback when user starts dragging
        console.log("new selection begins at: " + time);
      },
      end_date_selected: function(time) { // callback when user stops dragging
        console.log("new selection ends at: " + time);
      }
    });

About

Drag to select over jQuery UI Datepicker

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published