tamble / jquery-ui-daterangepicker

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

How can i add active class on select a range #67

Open webassic opened 7 years ago

webassic commented 7 years ago

How can i add active class on select a range ? on left side panel want to add "active" class on click it.

op16 commented 7 years ago

This is not supported for now.

The left side panel is a jQueryUI menu widget. Note that by default a menu item it's in active state only during hover. So you would need to bind to the menu's select event. This needs changing the function usePreset(event). But I also see potential issues after the daterangepicker is refreshed. The state should also be reset when the user chooses a custom range.