Decalaration file update required for append method

2 posts, 1 answers
  1. Edo
    Edo avatar
    87 posts
    Member since:
    Jul 2015

    Posted 09 Aug 2016 Link to this post

    I think that declaration file (kendo.all.d.ts) is missing declaration, where second parameter for append method is not required (based on this example).

    append(item: any): kendo.ui.Menu;  //currently missing
    append(item: any, referenceItem: string): kendo.ui.Menu;
    append(item: any, referenceItem: JQuery): kendo.ui.Menu;

    I think that this is the way, how can I add menu item if there are no items yet in the menu?

  2. Answer
    T. Tsonev
    T. Tsonev avatar
    2834 posts

    Posted 12 Aug 2016 Link to this post


    Thanks for the heads-up. I've updated the definitions and marked the second parameter as optional.

    The fix will be included in the next release.

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