This is a migrated thread and some comments may be shown as answers.

Use angularjs directive for slotTemplate

1 Answer 78 Views
Scheduler
This is a migrated thread and some comments may be shown as answers.
Michael
Top achievements
Rank 1
Michael asked on 01 May 2015, 03:03 PM

Hi,

I am using the slotTemplate to display preferred event types by color. I have the <script> version working, but I am wanting to use an angularjs directive to handle the javascript logic instead. I have tried the obvious ways:

slotTemplate: '<directive-element></directive-element>' and slotTemplate: '<div directive-attribute></div>'

It seems to ignore it. 

Is there anyway for me to avoid <script> or literal strings containing both js and html?

Thanks,

1 Answer, 1 is accepted

Sort by
0
Vladimir Iliev
Telerik team
answered on 05 May 2015, 01:30 PM
Hello Michael,


Currently this option is not supported as directive - that why you should continue using the previous approach which is working on your side.

Regards,
Vladimir Iliev
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Scheduler
Asked by
Michael
Top achievements
Rank 1
Answers by
Vladimir Iliev
Telerik team
Share this question
or