Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
webassic opened this issue Sep 20, 2016 · 1 comment
Open

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

webassic opened this issue Sep 20, 2016 · 1 comment

Comments

@webassic
Copy link

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

@op16
Copy link
Contributor

op16 commented Sep 20, 2016

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants