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

Dialog TypeScript definition files

2 Answers 31 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Saop
Top achievements
Rank 1
Saop asked on 04 Oct 2016, 01:41 PM

There are 2 different examples how to use confirm:

kendo.confirm("Are you sure that you want to proceed?").then(function () { //from online demos

kendo.confirm("Are you sure that you want to proceed?").done(function () { //from online documentation

But kendo.all.d.ts has:

function confirm(text: string): void;

which makes it impossible (without typecasting to any) for chaining (then/done). Same for prompt.

2 Answers, 1 is accepted

Sort by
0
Marc
Top achievements
Rank 1
answered on 05 Oct 2016, 07:34 PM

The returns for confirm and prompt need to be changed to JQueryPromise<any>.

I had the same issue, I worked with the Telerik support team to find the correct answer.

-marc

0
Accepted
Vessy
Telerik team
answered on 06 Oct 2016, 11:24 AM
Hi MatjaĆŸ,

In addition to the Marc's reply, we have already updated API reference so the the definitions for the confirm and prompt methods will be updated with the next release.

Regards,
Vessy
Telerik by Progress
 
Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
 
Tags
General Discussions
Asked by
Saop
Top achievements
Rank 1
Answers by
Marc
Top achievements
Rank 1
Vessy
Telerik team
Share this question
or