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

Display timepicker above datepicker #840

Closed
diogoalexandrefranco opened this issue Feb 14, 2015 · 4 comments
Closed

Display timepicker above datepicker #840

diogoalexandrefranco opened this issue Feb 14, 2015 · 4 comments

Comments

@diogoalexandrefranco
Copy link

Maybe this isn't an issue and i just haven't figured it out:

Is it possible to, when using 'sideBySide: false,' have the picker display the time picker first, with the calendar for the date picker below it?

Thanks for this!

@Eonasdan
Copy link
Owner

the date will always display first, if it's enabled. you can also use collapse: false which will display them vertically.

@diogoalexandrefranco
Copy link
Author

Thanks, and is there any way to toggle it via javascript, so that, even if the date is above the time, one could force the transition to the timepicker on loading?

@Eonasdan
Copy link
Owner

I guess you could try something like .find('.picker-switch a[data-action="togglePicker"]').click() on the show event?

@diogoalexandrefranco
Copy link
Author

That worked beautifully, thanks!

Repository owner locked and limited conversation to collaborators Jun 17, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants