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

PanelBar TypeScript append, insertAfter, insertBefore argument types correct?

1 Answer 80 Views
PanelBar
This is a migrated thread and some comments may be shown as answers.
Matthias
Top achievements
Rank 1
Matthias asked on 27 Feb 2014, 02:33 PM
The description for append, insertAfter and insertBefore I believe are not defined correctly in the TypeScript definition file.

For example, for append(item, referenceItem ) as defined here:
http://docs.telerik.com/kendo-ui/api/web/panelbar#methods-append

can be JSON or a string (text, url, etc.)

However, the TypeScript definition defines both as strings.

Do these interfaces need to be expanded to accept JSON object directly?

Also the referenceItem parameters says that it can be omitted, but the interface does not indicate that with a '?'.

1 Answer, 1 is accepted

Sort by
0
Kamen Bundev
Telerik team
answered on 04 Mar 2014, 07:13 AM
Hi Matthias,

Thank you for noticing this, seems the PanelBar and Menu methods were incorrectly described, which causes their TypeScript definitions to be wrong. I've fixed them and the fix will be available with the next internal build and later in the release. I've also updated your Telerik points for the find.

Regards,
Kamen Bundev
Telerik
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
Tags
PanelBar
Asked by
Matthias
Top achievements
Rank 1
Answers by
Kamen Bundev
Telerik team
Share this question
or