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.


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

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

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:

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.