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

Treelist documentation

1 Answer 74 Views
TreeList
This is a migrated thread and some comments may be shown as answers.
Laszlo
Top achievements
Rank 1
Laszlo asked on 21 Jan 2015, 08:51 AM
Hi!

Some suggestions for the TreeList's documentation:

addRow
http://docs.telerik.com/kendo-ui/api/javascript/ui/treelist#methods-addRow
    Parameter list is missing from the "head" of the method definition (that you can add a new row under an existing row)

.d.ts type definition:
    
class TreeList extends kendo.ui.Widget{
//...
//the current method definition:
addRow(): void;
//I think it should be something like this:
addRow(parentRow?: any): void;


Toolbar
interface TreeListOptions.toolbar
//the current typing is the following:
 
toolbar?: TreeListToolbarItem[];
 
//according to the API docs, it should be something like this (this requres TypeScript 1.4 Union Types):
toolbar?: string | Function | TreeListToolbarItem[];

1 Answer, 1 is accepted

Sort by
0
Alex Gyoshev
Telerik team
answered on 22 Jan 2015, 02:14 PM

Hello Laszlo,

Thank you for the suggestions. We have fixed the addRow declaration for future builds. As for the declarations utilizing union types, we have not yet started adding such declarations in our definitions yet, but this is on our radar for future versions of the framework.

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