JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums Gantt Could someone please assist me with: Gantt? Thanks in advance!

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #112695
    alex.morris22
    Participant

    Can I use Smart Gantt with a REST API in Angular?

    #112698
    Markov
    Keymaster

    Hi,

    Sure, follow https://www.htmlelements.com/docs/gantt/ to get started. Then, connect to a REST API using Angular’s HttpClient

    import { HttpClient } from '@angular/common/http';
    
    tasks: any[] = [];
    
    constructor(private http: HttpClient) {}
    
    ngOnInit(): void {
      this.http.get<any[]>('https://your-api.com/gantt-data').subscribe(data => {
        this.tasks = data;
      });
    }

    hope this helps.

    Regards,
    Markov

    Smart UI team
    https://www.htmlelements.com/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.