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

calls to selectDate() are not reflected on UI #2

Open
semenoh opened this issue Jan 13, 2015 · 4 comments · May be fixed by #6
Open

calls to selectDate() are not reflected on UI #2

semenoh opened this issue Jan 13, 2015 · 4 comments · May be fixed by #6
Assignees
Labels

Comments

@semenoh
Copy link

semenoh commented Jan 13, 2015

Hi,
I'm trying to set date next way:

calendar.getManager().selectDay(new LocalDate(y, m, d);

It changes date but changes are not reflected on UI until I start expanding view. It does not update view if I collapse it.

As a workaround I tried to call

calendar.populateLayout();

But it work only in selected week or month. It does not switch to next/perv week/month when selection goes outside.

@blazsolar blazsolar self-assigned this Jan 13, 2015
@blazsolar blazsolar added the bug label Jan 13, 2015
@blazsolar
Copy link
Owner

Hey,

so this library wasn't 100% finished when I pushed it to github, that's why version 0.1.0. It has also been a while since I worked on it so I can't remember if this should be handled. I will try to find some time tho and take a closer look into this issue.

@GautamGupta
Copy link

Similarly calendar.getManager().toggleView(); doesn't update the UI. However calendar.populateLayout(); fixes it.

@blazsolar
Copy link
Owner

I'll try to look into this in a next few days.

@blazsolar blazsolar linked a pull request May 3, 2015 that will close this issue
@blazsolar
Copy link
Owner

I have implemented requests above. You can see them in #6 PR. Still have to test them that is why they are not yet merged in. I'll do that in coming days.

There are 2 new public methods:

  • CollapseCalendarView.toggle()
  • CollapseCalendarView.selectDate()

You can toggle and select view with those 2 methods programmatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants