Treelist documentation

2 posts, 0 answers
  1. Laszlo
    Laszlo avatar
    8 posts
    Member since:
    Sep 2014

    Posted 21 Jan 2015 Link to this post

    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[];
  2. Alex Gyoshev
    Admin
    Alex Gyoshev avatar
    2500 posts

    Posted 22 Jan 2015 Link to this post

    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!
     
  3. Kendo UI is VS 2017 Ready
Back to Top