Docs
API
  • insert(index: Mixed, config: Mixed)


    insert data.

    Example

    
    grid.insert(1, {
      id: 25,
      name: 'John',
      someProperty: 1
    });
    

    insert(index: Object)


    insert data item on row with index 0.

    Example

    
    grid.insert({
      id: 25,
      name: 'John',
      someProperty: 1
    });
    

    insert(index: Number, config: Object)


    insert data item on row with index index.

    Example

    
    grid.insert(2, {
      id: 25,
      name: 'John',
      someProperty: 1
    });
    

    insert(index: Array)


    insert data items on row with index 0.

    Example

    
    grid.insert([{
      id: 25,
      name: 'John',
      someProperty: 1
    }]);
    

    insert(index: Number, config: Array)


    insert data item on row with index index.

    Example

    
    grid.insert([{
      id: 25, 
      name: 'John',
      someProperty: 1
    }]);