-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
feat(daterangepicker): add ability to select week as a daterange #5611
Conversation
Codecov Report
@@ Coverage Diff @@
## development #5611 +/- ##
============================================
Coverage 52.52% 52.52%
============================================
Files 3 3
Lines 99 99
Branches 17 17
============================================
Hits 52 52
Misses 37 37
Partials 10 10 Continue to review full report at Codecov.
|
5eec928
to
a611cc7
Compare
ebc2d0b
to
5533c2d
Compare
5533c2d
to
d212b67
Compare
demo/src/ng-api-doc.ts
Outdated
@@ -1044,7 +1044,12 @@ export const ngdoc: any = { | |||
{ | |||
"name": "selectWeek", | |||
"type": "boolean", | |||
"description": "<p>Makes dates from other months active</p>\n" | |||
"description": "<p>Makes weeks selectable, and mark first available date of the week as selected</p>\n" |
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.
Did you generate this code or add it manually?
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, previously that was added manually, now I used demo.gen-docs
script
if (week.days.length === 0) { | ||
return; | ||
if (this._config.selectWeek) { | ||
if (week.days |
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.
Could you please merge these conditions?
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.
✔️
… into week-daterange-select-5588
e4d70fd
to
6dc1d33
Compare
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.
looks good to me
Tested ready to merge |
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.
Ready to merge
How to Implement this? ability to select Week |
@Vinoth-deva I don't understand your question. |
Yes, Thank you so much for the reply, @daniloff200 i want to know how to use this functionality in my project |
i had a look into it, there if we select the week number its selecting first day of the week, but in my case if user select any of the day i want to select the entire week @daniloff200 as shown in the XD |
Well, we don't have such functionality, but, you can try to use a workaround. |
closes #5588
PR Checklist
Before creating new PR, please take a look at checklist below to make sure that you've done everything that needs to be done before we can merge it.