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

hide preset panel #63

Open
playerzero opened this issue Jul 18, 2016 · 4 comments
Open

hide preset panel #63

playerzero opened this issue Jul 18, 2016 · 4 comments

Comments

@playerzero
Copy link

I would like to implement this without the preset panel, but i'm not seeing an obvious way to do this... Is it possible (aside from hiding via CSS)? Thanks.

@op16
Copy link
Contributor

op16 commented Jul 18, 2016

No, it's not possible. We consider the presets panel as one essential feature of our widget, so it's not likely to become optional in the near future. Maybe only after a complete rewrite (which would come by v1.0)

@saurabhdeep
Copy link

I did it by setting presetRanges to an empty array and then overridden some css classes to remove unnecessary borders and padding. Looks just like the original jquery ui datepicker after doing this much.

@playerzero
Copy link
Author

Thanks for the info. The requirement i was trying to fulfill was to have a single datepicker showing 2 months, with the ability to select start and end dates. The preset panel is extraneous to this particular requirement. Just FYI, in case you do want to consider this for a future release. Feel free to close this, i'll leave that to you.

@marccompte
Copy link

Would be useful at least to be able to give a custom class name to the div.comiseo-daterangepicker-main. This way one would be able to remove the presets manually with CSS on a particular instance. In my case we use it in two places, one of which requires not to have any preset range while the other one requires to have them. With a custom class on one of them we could do it easily.

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

4 participants