Premium support for our pure JavaScript UI components


Post by bensullivan »

Hi

We are about to setup gantt for our product.

We noticed from your Advanced Example that it is possible to load the gantt from a JSON payload.
const project = new ProjectModel({

    // Let the Project know we want to use our own Task model with custom fields / methods
    taskModelClass : Task,
    transport      : {
        load : {
            url : '../_datasets/launch-saas.json'
        }
    }
});
Is there some doco somewhere detailing the necessary endpoints for persisting a gantt via an API? JSON Schema? Swagger spec? Postman collection?

Ideally we'd need to understand what endpoints are required what they will need to receive, when they are called, how they are called, the request payload format and the corresponding response payload format.

Also, is it possible to use the transport as a proxy that marshals JSON to and from API message format to the format the gantt component requres to load and save/update/delete?

Thanks

Ben

Post by sergey.maltsev »

Hi!

We have all backend data management in Crud manager mixin.

Please refer to this Guide first.
https://www.bryntum.com/docs/gantt/#guides/crud_manager.md

Also we have Backend php demo which can be used to play around with client/server architecture.
Demo is not runnable online but you can check it in examples/php folder in distribution package.
Please refer to examples/php/readme.md file for demo instructions.
Basically you would need WebServer, PHP and MySQL to setup it.

If you have more questions please do not hesitate to ask.

Post Reply