Skip to content

Add a handful of pikaday options#7

Open
imjared wants to merge 1 commit into
thomasboyt:masterfrom
imjared:master
Open

Add a handful of pikaday options#7
imjared wants to merge 1 commit into
thomasboyt:masterfrom
imjared:master

Conversation

@imjared

@imjared imjared commented Dec 1, 2014

Copy link
Copy Markdown

Added a few pikaday options that I needed for my project. Might extend this further if I have need for it.

  • defaultDate
  • firstDay
  • format
  • maxDate
  • minDate
  • position
  • setDefaultDate
  • showWeekNumber

I've gotta admit, I'm not too great with testing and while your tests were helpful as a reference, I'm not entirely sure how I'd write one for something like maxDate or firstDay. If you have any suggestions on how I could account for these options, I'm happy to try writing them! I could definitely use the practice.

- defaultDate
- firstDay
- format
- maxDate
- minDate
- position
- setDefaultDate
- showWeekNumber
@kylehotchkiss

Copy link
Copy Markdown

👍, the format option would be nice to have.

@pzi

pzi commented Sep 11, 2015

Copy link
Copy Markdown

This means every option is a prop, how about just passing one prop called options with everything you have inside of it?

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

Successfully merging this pull request may close these issues.

3 participants