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

Decalaration file update required for append method

1 Answer 35 Views
Menu
This is a migrated thread and some comments may be shown as answers.
Seyfor
Top achievements
Rank 1
Seyfor asked on 09 Aug 2016, 03:33 PM

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?

1 Answer, 1 is accepted

Sort by
0
Accepted
T. Tsonev
Telerik team
answered on 12 Aug 2016, 07:21 AM
Hello,

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.

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