Dialog TypeScript definition files

3 posts, 1 answers
  1. Matjaž
    Matjaž avatar
    82 posts
    Member since:
    Jul 2015

    Posted 04 Oct 2016 Link to this post

    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. Marc
    Marc avatar
    27 posts
    Member since:
    Sep 2014

    Posted 05 Oct 2016 in reply to Matjaž Link to this post

    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.


  3. Answer
    Vessy avatar
    1664 posts

    Posted 06 Oct 2016 Link to this post

    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.

    Telerik by Progress
    Get started with Kendo UI in days. Online training courses help you quickly implement components into your apps.
Back to Top