search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Angular - Add buttons with click event inside cornerHtml

Asked by Anonymous
3 years ago.

Hello,

I try to add buttons inside of cornerHtml property with click event, example :

cornerHtml:' <a (click)="previous()" >
<span class="icon-BackArrow"></span>
</a>
<a (click)="next()">
<span class="icon-NextArrow"></span>
</a>'

The html is well displayed but the click event is not detected.

Is there another way to implement the events directly in the cornerHtml because i couldn't find anything about it ?

Answer posted by Dan Letecky [DayPilot]
3 years ago.

Unfortunately, it's not possible to use Angular templates in the cornerHtml property.

However, it is possible to create a custom Angular component and add it to the upper-left corner - please see the following tutorial for an example:

https://code.daypilot.org/27778/angular-scheduler-how-to-add-components-to-the-upper-left-corner

Comment posted by Anonymous
3 years ago.

Ok thanks !

This question is more than 1 months old and has been closed. Please create a new question if you have anything to add.