-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Implement numberOfMonths #76
Conversation
Using this new option & the tiny modifications it involves, I created an example page of a datepicker that support date ranges. I can make another PR to share this example (it will just be an example in the appropriate section) if this one is merged & if you are interested. |
It seems I completly miss the |
Just to let you know I udpate this PR using |
I would be super excited to see this pulled in. |
Great fix this. Here is a preview I've set the startdate as today. Is there a way to make sure the current month of the start date is the month on the left. As you could have a blank month on the left. |
I'm currently updating this PR (rebased fix a related bug (select month/year from title |
Hey guys, I completely rewrote this implementation. It's way better than before (I fix bugs related to prev|nextMonth & select on the title). |
I also add an option to take control of the position as requested in this comment by @leads. This really make sense depending on what kind of date you are going to choose (futur or past). |
Btw, I just saw #24 already did an similar implementation, but I think I got something more solid & in the same spirit of the existing codebase. |
Like I mentioned in #24, I'm not sure if we should add this to master. |
I think I do not create this lines https://github.com/dbushell/Pikaday/blob/master/pikaday.js#L207-L208 |
Ok, good point. |
|
||
<h2>What is this?</h2> | ||
|
||
<p>This is a development preview! Feel free to use it however you like but please report any bugs or feature requests to <a href="http://twitter.com/dbushell/">@dbushell</a> (on the GitHub issue tracker), thanks!</p> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this comment still valid about being a dev preview?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No it's not. But this PR seems not considered for merge so I don't care for now.
Sorry just woke up, what is the issue here ? |
.pika-lendar { | ||
float: left; | ||
width: 240px; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we add some default margin between the calendars?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe yes.
Yes, the jumping up of the second month. |
Probably a simple fix. Let me take a look. |
Don't worry. It is because of a bug in site.css that is used for the examples: button { |
Np. Good to know :) |
Here is a simple option to add more calendars. PR includes one example & README changes.