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
11 months 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]
11 months 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
11 months ago.

Ok thanks !

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