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

How to set an interval of days in calendar? #156

Open
mariansurdu opened this issue Aug 9, 2017 · 3 comments
Open

How to set an interval of days in calendar? #156

mariansurdu opened this issue Aug 9, 2017 · 3 comments

Comments

@mariansurdu
Copy link

mariansurdu commented Aug 9, 2017

I'm trying to make calendar to display an interval of days.I'm selecting 2 dates and i want to display interval.
Is there a way to do this in component or to make a refresh on entire component to display only the interval with the rest of dates disabled?
Thanks for any help :)

@twinssbc
Copy link
Owner

twinssbc commented Aug 9, 2017

@mariansurdu I'm not quite sure I understand your requirement. Do you want to only display several days? In which view? Maybe a mockup could help.

@mariansurdu
Copy link
Author

mariansurdu commented Aug 11, 2017

I want to select two days in calendar.And when i select the second date, days that are in interval to be enabled and the others to be disabled
image
I've tried to do something using is-date-disabled attribute from directive.But to display me like in mockup i need to swipe two months and return back to see interval.Is a way to refresh calendar when i select second date?
I've tried also with:$scope.$broadcast('eventSourceChanged',[]);
Thanks :)

@twinssbc
Copy link
Owner

@mariansurdu I got your requirement. Let me expose an event to force refresh the calendar.

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