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

Can't add ng-click event in bc-day-template #26

Open
blindfish3 opened this issue Feb 6, 2017 · 1 comment
Open

Can't add ng-click event in bc-day-template #26

blindfish3 opened this issue Feb 6, 2017 · 1 comment
Assignees

Comments

@blindfish3
Copy link

I may be missing something obvious (still relatively new to angular) but for this to be really useful/flexible it should be possible to add custom click events in the calendar days. In my case I need to create a calendar with several controls on each day; but when I add

<button ng-click="vm.doClick()">click me</button>

in the custom day template (and corresponding method to the controller) the event doesn't trigger; I'm guessing because the bc-date-selected event intercepts all clicks on the day (or perhaps because I screwed up).

@benjamincharity
Copy link
Owner

Hey! Sorry, I somehow missed the notification for this issue!

You are correct. This plugin was originally created with a narrow set of interactions; I simply needed a calendar that allowed selection on a single day. Looking at it now, it's clear that the current setup is a bit constraining.

Let me think on this one a bit. I haven't written Angular1 in several months.. need to refresh my knowledge on the best approach for this.

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

No branches or pull requests

2 participants