Docs
API
  • addChild(rowData: Object)

    Method addChild is used for only Tree Data.

    It appends child to node.
    If to execute this method with one param it appends child to top level.
    Special tree properties are: expanded, child, leaf.

    Example

    
    grid.addChild({
      name: name,
      type: type,
      expanded: true,
      child: []
    });
    

    addChild(item: Number|String|Model, rowData: Object)

    Example: Adding leaf

    
    grid.addChild(id, {
      name: name,
      type: type,
      leaf: true
    });
    

    See also

    Method add
    Method insert