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

DateTimePicker Control #240

Closed
wants to merge 3 commits into from
Closed

DateTimePicker Control #240

wants to merge 3 commits into from

Conversation

AJIXuMuK
Copy link
Collaborator

Q A
Bug fix? [ ]
New feature? [x]
New sample? [ ]
Related issues? none

What's in this Pull Request?

The PR contains new DateTimePicker control.

It is based on PropertyFieldDateTimePicker control but with some redesigned aspects:

  • table markup is changed with display: flex markup
  • the control works with Date objects instead of IDateTimeFieldValue
  • formatDate is now used to format date in DatePicker
  • the control has additional properties to pass DatePicker strings, min and max date, flag to show or hide seconds dropdown
  • AM/PM designators are read from locale strings

@codecov-io
Copy link

Codecov Report

Merging #240 into dev will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##              dev     #240   +/-   ##
=======================================
  Coverage   72.71%   72.71%           
=======================================
  Files          16       16           
  Lines         744      744           
  Branches      148      148           
=======================================
  Hits          541      541           
  Misses        159      159           
  Partials       44       44
Impacted Files Coverage Δ
src/loc/en-us.ts 100% <ø> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 97818fc...4b63770. Read the comment docs.

robert-lindstrom added a commit to SherpasGroup/sp-dev-fx-controls-react that referenced this pull request Mar 22, 2019
robert-lindstrom added a commit to SherpasGroup/sp-dev-fx-controls-react that referenced this pull request Mar 22, 2019
robert-lindstrom added a commit to SherpasGroup/sp-dev-fx-controls-react that referenced this pull request Mar 22, 2019
robert-lindstrom added a commit to SherpasGroup/sp-dev-fx-controls-react that referenced this pull request Mar 22, 2019
Based on pnp#240 by @AJIXuMuK. Changed default to false
i.e., to hide seconds dropdown since SharePoint historically
has not been showing seconds.
robert-lindstrom added a commit to SherpasGroup/sp-dev-fx-controls-react that referenced this pull request Mar 22, 2019
@estruyf
Copy link
Member

estruyf commented Apr 18, 2019

@AJIXuMuK closing this one, as we merged the other DateTime control. Thanks for the work you did and the validation / testing of the other control!

@estruyf estruyf closed this Apr 18, 2019
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.

None yet

3 participants