Skip to content
This repository has been archived by the owner on Jun 19, 2018. It is now read-only.

Programmatically toggle the event list (the one that slides out in the month view) #199

Closed
worldspawn opened this issue Nov 5, 2015 · 2 comments

Comments

@worldspawn
Copy link

Hi,

I made some event seeking button (first, previous, next, last) that seek through the sorted event list and set the current day to the event it finds. This moves the view to the correct month (sweet!) if needed. But I would also like to close any open sliders and have it expand the slider on the day I have just set.

How might I do that? Note this is not happening as part of any calendar triggered event.

Also would like to change the slidebox template. I dont want the time appearing, is that template overridable?

@mattlewis92
Copy link
Owner

In 0.16.x I've added a new cell-is-open attribute, which you can use to control if the slidebox is open or not (If you set it to true it will now by default have the behaviour you expect of opening the same day of the next month when going between them)

@mattlewis92
Copy link
Owner

To change the slidebox template, use a decorator: https://github.com/mattlewis92/angular-bootstrap-calendar#custom-directive-templates

mattlewis92 pushed a commit that referenced this issue Nov 7, 2015
…and month view slide box is ope

Closes #199

BREAKING CHANGE: auto-open has been renamed to cell-is-open. It is now 2 way bound if the slidebox is open or not so
you can programmatically control the visibility of the slidebox.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants