tamble / jquery-ui-daterangepicker

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

I have more question about presetRanges #72

Closed mukda closed 5 years ago

mukda commented 7 years ago

If i need get text of presetRanges after click some menu , how get? ( I try get value but daterangepicker show startdate and enddate not show text.)

** i need show text not date.

op16 commented 7 years ago

This is not supported.

I see two possible solutions.

  1. getRange should return a range object which has an optional text or description property when the range was selected from the menu.
  2. we could add some menuselect event, and you would pick the range description from that event's data.

First solution is the fastest to implement. The second would also solve #67. I think we should implement both, but because we are busy with other projects, only the first stands a chance to be implemented any time soon.

Let us know if the first solution would work for you.