Docs
API
  • addChild(config: 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, config: Object)


    Example: Adding leaf

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

    See also

    Method add
    Method insert