tamble / jquery-ui-daterangepicker

A JQuery UI based date range picker.
MIT License
184 stars 110 forks source link

Add Preset Range #50

Open rl99 opened 8 years ago

rl99 commented 8 years ago

Is there a way to add a preset date that would be the same as the original date as passed in via

$("#e2).daterangepicker("setRange", {start: sd, end: ed} )

I cannot see where the initial values are passed in.

Thanks RL99

op16 commented 8 years ago

Maybe you can use the second solution mentioned in #7.

rl99 commented 8 years ago

So there is no way to add a preset called "Original" and populate it with the original dates?

op16 commented 8 years ago

Sorry, I misunderstood your question. See http://tamble.github.io/jquery-ui-daterangepicker/#presets (unfortunately for now you have to list all presets). This is probably the most requested feature...

rl99 commented 8 years ago

Perfect! Thanks!