Docs
API
  • addChild(config: Object)


    Method addChild is used for only Tree Data.
    It appends child to node.
    If execute this method with one param it append 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, config: Object)


    Example: Adding leaf

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