Hello,
we have just updated to Kendo Mobile build 2013.1.319 and are using the TypeScript definition file provided by it. We are converting our code from the very minimal definition file we had created up until now.
We have a call to jQuery.kendoMobileListView() that looks like this:
$("#incident-list").kendoMobileListView({
template: kendo.template($("#template-incident-list").html()),
dataSource: this._dsIncidents,
style: "inset"
});
The template is defined using the pattern:
<script id="template-incident-list" type="script/x-kendo-template">
...
</script>
This generates a compiler error because the definition in kendo.mobile.d.ts reads as follows:
interface ListViewOptions {
...
template?: string;
...
}
kendoMobileListView(options: kendo.mobile.ui.ListViewOptions): JQuery;
Isn't this an error? Why can't I pass in a Kendo template in the template parameter?
The code above worked fine on the previous version. I will modify the .d.ts file to see if it still runs on the new version as well.
Thanks,
David Sykes
we have just updated to Kendo Mobile build 2013.1.319 and are using the TypeScript definition file provided by it. We are converting our code from the very minimal definition file we had created up until now.
We have a call to jQuery.kendoMobileListView() that looks like this:
$("#incident-list").kendoMobileListView({
template: kendo.template($("#template-incident-list").html()),
dataSource: this._dsIncidents,
style: "inset"
});
The template is defined using the pattern:
<script id="template-incident-list" type="script/x-kendo-template">
...
</script>
This generates a compiler error because the definition in kendo.mobile.d.ts reads as follows:
interface ListViewOptions {
...
template?: string;
...
}
kendoMobileListView(options: kendo.mobile.ui.ListViewOptions): JQuery;
Isn't this an error? Why can't I pass in a Kendo template in the template parameter?
The code above worked fine on the previous version. I will modify the .d.ts file to see if it still runs on the new version as well.
Thanks,
David Sykes