Docs
API
  • type

    string

    Type of params that sent to server and get back from it.
    Sample with sorting and paging.

    Values: 'json', 'string'

    
    read: 'GET'
    url - app.php/users?sort=company&dir=asc&page=1&limit=10&start=10
    
    Responce - 
    {"success": true, data: [...]}
    
    
    create: 'POST'
    url - app.php/users
    
    Request Payload -
    {"id":26}
    Responce - 
    {"success":true,"message":"Created new User","data":{"id":27}}
    

    In create action, param id is mainly for information purpose, server gives self id and returns it.
    If server will not return id, than id that was sent for this row item will be in grid for sending update and delete actions to server.

    
    update: 'PUT'
    url - app.php/users
    
    Request Payload -
    {"id":2,"surname":"John"}
    
    Responce - 
    {"success":true,"message": "Updated User 2"}
    
    
    destroy: 'DELETE'
    url - app.php/users
    
    Request Payload -
    {"id":11}
    
    Responce - 
    {"success":true,"message": "Destroyed User 11"}
    

    Default

    
    undefined