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

Add new range #46

Open
xyrintech opened this issue Jun 11, 2018 · 1 comment
Open

Add new range #46

xyrintech opened this issue Jun 11, 2018 · 1 comment

Comments

@xyrintech
Copy link

Is there anyway we can add custom range like like "Last 7 Days" in the selector?

@pranjalsm
Copy link

case 'tw':
this.dateFrom = dateFns.startOfWeek(today, {weekStartsOn: this.options.startOfWeek});
this.dateTo = dateFns.endOfWeek(today, {weekStartsOn: this.options.startOfWeek});
break;

Like This you can use last 7Days in same code only

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

No branches or pull requests

2 participants