I'm wrapping Kendo controls for an application I'm writing in Aurelia.
I've written wrapper for Kendo Grid which works fine - I've used the "template" property in the grid options which accepts a callback. In this callback I dynamically compile the row template in the context of the row data which allows me to use Aurelia's markup instead of Kendo templates
Example:
<
kendo-grid
read.call
=
"getTimesheets($event)"
sortable.bind
=
"true"
>
<
kendo-grid-col
field
=
"TranDate"
heading
=
"Date"
>
<
kendo-template
>${ $item.TranDate | dateFormat }</
kendo-template
>
</
kendo-grid-col
>
</
kendo-grid
>
I'm trying to do the same with Calendar. I'd like to be able to provide a function which the calendar control will call when it's rendering the tiles on the Month view.
Currently the `month` property on Calendar options only seems to accept a JS object which allows a "content" string/kendo template.
Failing there being a callback, is there some documentation around kendo.template that I can use to write an Aurelia wrapper? I'm trying to dig around in the github repo to find where the kendo.template magic happens - any pointers or advice you could give me would be awesome!
Thanks in advance