-
Notifications
You must be signed in to change notification settings - Fork 89
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
Allow strings for disabled days time picker #152
Conversation
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.
👍
Codecov Report
@@ Coverage Diff @@
## master #152 +/- ##
==========================================
+ Coverage 80.7% 80.78% +0.08%
==========================================
Files 86 87 +1
Lines 1337 1348 +11
Branches 318 321 +3
==========================================
+ Hits 1079 1089 +10
- Misses 214 215 +1
Partials 44 44
Continue to review full report at Codecov.
|
I'm not able to build it without errors, and I haven't found any documentation about it. I'dl ike to |
@skateman try Yank link is a but different you have to cd to the desired package and run yarn link from there |
Wait, what? I have to run the build from outside the package? From the monorepo? |
You can do it either way. Build from root builds every package |
Yeah, running it from the package was failing. |
Do you have error log? |
|
You have to run build |
Yeah, this should be probably documented somewhere. |
@@ -405,9 +405,10 @@ const output = { | |||
component: components.DATE_PICKER, | |||
isClearable: true, | |||
disabledDays: [ | |||
'today', |
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.
What this line actually means? Is it that you can't select today in the picker? Would it disable any date befor today if I write before: 'today'
below?
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.
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.
We are using this component. There is a link in the componentApi docs for date time picker
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.
Yeah, this doesn't really answer my question, but I tested it and it works:
disabledDays: [{
after: 'today'
}]
This doesn't allow me to select any date in the future and that's the thing I want the most from this PR 😉
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.
@Hyperkid123 if you merge something, is there always a new version pushed? Would it be possible to comment it here the way we do it in react-ui-components? It would be super helpful... |
@skateman depends on the commit message. We are using semantic release message format react-ui-components does do the same but you don't even have to have special commit message |
Yeah, but I'm missing these kind of comments, so I don't have to hunt down the version changes all the time. |
Ah that. Yeah i wanted to do that for a long time. I just don't know when. You can check it out if you want there is even a bot account i think. |
closes #150
Changes
today
which is equal tonew Date()