Dialog TypeScript definition files

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

    Posted 04 Oct 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
    11 posts
    Member since:
    Sep 2014

    Posted 05 Oct 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.

    -marc

  3. Kendo UI is VS 2017 Ready
  4. Answer
    Vessy
    Admin
    Vessy avatar
    1380 posts

    Posted 06 Oct 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.

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