@bryntum/gantt-angular-thin
v7.2.1
Published
Angular IVY wrappers for Bryntum Gantt JavaScript component
Readme
Angular wrapper for Bryntum Gantt Thin packages
This package provides a wrapper that turns Bryntum Gantt into an Angular component, exposing configuration options, properties, features, and events.
Thin Package: This is a thin wrapper package designed for applications that use multiple Bryntum products. Thin packages exclude bundled dependencies to avoid duplication. For details, see Angular Multiple Products.
Version Requirement
Wrapper is compiled for the Angular Ivy rendering engine (Angular 12+).
- Angular:
12with Ivy support or higher - TypeScript:
4.2or higher - Vite
5or higher (starting with Angular17)
Package Contents
| Path | Description |
|--------|----------------------------------|
| lib/ | Component type definitions |
| src/ | Original TypeScript source files |
Installation
Angular Wrapper
npm install @bryntum/gantt-angular-thin@latestComponent Package (Required)
npm install @bryntum/gantt-thin@latestTry Bryntum Online Demos
Quick Start
Edit the src/app/app-module.ts file and add the following import:
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { BryntumCoreModule } from '@bryntum/core-angular-thin';
import { BryntumGridModule } from '@bryntum/grid-angular-thin';
import { BryntumSchedulerModule } from '@bryntum/scheduler-angular-thin';
import { BryntumSchedulerProModule } from '@bryntum/schedulerpro-angular-thin';
import { BryntumGanttModule } from '@bryntum/gantt-angular-thin';
import { AppComponent } from './app';
@NgModule({
declarations : [
AppComponent
],
imports : [
BrowserModule,
BryntumCoreModule,
BryntumGridModule,
BryntumSchedulerModule,
BryntumSchedulerProModule,
BryntumGanttModule
],
providers : [],
bootstrap : [AppComponent]
})
export class AppModule {}Create src/app/app.config.ts file with the following content:
import { BryntumGanttProps, BryntumGanttProjectModelProps } from '@bryntum/gantt-angular-thin';
export const projectProps: BryntumGanttProjectModelProps = {
// Automatically introduces a `startnoearlier` constraint for tasks that (a) have no predecessors,
// (b) do not use constraints and (c) aren't `manuallyScheduled`
autoSetConstraints : true,
loadUrl : 'data/data.json',
autoLoad : true
};
export const ganttProps: BryntumGanttProps = {
columns : [
{ type : 'name', width : 200 }
],
startDate : new Date(2026, 0, 1),
endDate : new Date(2026, 2, 1)
};Update the src/app/app.ts file with the following content:
import { Component, ViewChild } from '@angular/core';
import { BryntumGanttComponent, BryntumGanttProjectModelComponent } from '@bryntum/gantt-angular-thin';
import { ganttProps, projectProps } from './app.config';
@Component({
selector : 'app-root',
standalone : false,
templateUrl : './app.html',
styleUrl : './app.css',
})
export class AppComponent {
ganttProps = ganttProps;
projectProps = projectProps;
@ViewChild('gantt') ganttComponent!: BryntumGanttComponent;
@ViewChild('project') projectComponent!: BryntumGanttProjectModelComponent;
}Edit the src/app/app.html file and replace the content with the following:
<bryntum-gantt-project-model
#project
[loadUrl] = "projectProps.loadUrl!"
[autoLoad] = "projectProps.autoLoad!"
[autoSetConstraints] = "projectProps.autoSetConstraints!"
></bryntum-gantt-project-model>
<bryntum-gantt
#gantt
[startDate] = "ganttProps.startDate!"
[columns] = "ganttProps.columns!"
[endDate] = "ganttProps.endDate!"
[project] = "project"
></bryntum-gantt>Create a public/data/data.json file for example data and add the following JSON data to it:
{
"success": "true",
"tasks": {
"rows": [
{
"id": 1,
"name": "Documentation Project",
"expanded": true,
"children": [
{
"id": 2,
"name": "Preparation",
"expanded": true,
"children": [
{ "id": 6, "name": "Proof-read docs", "startDate": "2026-01-02", "endDate": "2026-01-09" },
{ "id": 3, "name": "Release docs", "startDate": "2026-01-09", "endDate": "2026-01-10" }
]
},
{
"id": 4,
"name": "Development",
"expanded": true,
"children": [
{ "id": 7, "name": "Write API docs", "startDate": "2026-01-05", "endDate": "2026-01-12" },
{ "id": 8, "name": "Write tutorials", "startDate": "2026-01-10", "endDate": "2026-01-16" },
{ "id": 9, "name": "Create examples", "startDate": "2026-01-12", "endDate": "2026-01-18" }
]
},
{
"id": 5,
"name": "Review & Release",
"expanded": true,
"children": [
{ "id": 10, "name": "Team review", "startDate": "2026-01-18", "endDate": "2026-01-20" },
{ "id": 11, "name": "Final approval", "startDate": "2026-01-20", "endDate": "2026-01-21" },
{ "id": 12, "name": "Public release", "startDate": "2026-01-22", "endDate": "2026-01-22" }
]
}
]
}
]
},
"dependencies": {
"rows": [
{ "fromTask": 6, "toTask": 3 },
{ "fromTask": 7, "toTask": 8 },
{ "fromTask": 8, "toTask": 9 },
{ "fromTask": 9, "toTask": 10 },
{ "fromTask": 10, "toTask": 11 },
{ "fromTask": 11, "toTask": 12 }
]
}
}This is the data the Bryntum Gantt will use.
Project Structure
Product Dependencies
API packages:
{
"dependencies": {
"@bryntum/core-thin": "7.2.1",
"@bryntum/engine-thin": "7.2.1",
"@bryntum/grid-thin": "7.2.1",
"@bryntum/scheduler-thin": "7.2.1",
"@bryntum/schedulerpro-thin": "7.2.1",
"@bryntum/gantt-thin": "7.2.1"
}
}Framework wrapper packages:
{
"dependencies": {
"@bryntum/core-angular-thin": "7.2.1",
"@bryntum/gantt-angular-thin": "7.2.1"
}
}Product Configuration
import { BryntumGanttProps } from '@bryntum/gantt-angular-thin';
const ganttProps : BryntumGanttProps = {
// Gantt configuration
};Product Styling
SCSS/CSS:
/* FontAwesome is used for icons */
@import '@bryntum/core-thin/fontawesome/css/fontawesome.css';
@import "@bryntum/core-thin/fontawesome/css/solid.css";
/* Structural CSS */
@import '@bryntum/core-thin/core.css';
@import '@bryntum/grid-thin/grid.css';
@import '@bryntum/scheduler-thin/scheduler.css';
@import '@bryntum/schedulerpro-thin/schedulerpro.css';
@import '@bryntum/gantt-thin/gantt.css';
/* Theme */
@import '@bryntum/core-thin/material3-light.css';Product Localization
import '@bryntum/gantt-thin/lib/localization/De.js'Integration Guide
For details on installing and using this package, see the Angular Integration Guide.
Wrappers
Angular wrappers encapsulate Bryntum components as native Angular components, exposing all configuration options, properties, features, and events through Angular-familiar patterns like inputs, outputs, and templates.
Visit Wrappers documentation for the complete list of available wrapper components.
Features
Features are optional modules that extend Bryntum Gantt functionality. Each feature is suffixed with Feature and
can be enabled and configured through standard Angular inputs.
Visit Features documentation for the complete list of available features and their configuration options.
Explore All Bryntum Products
- Bryntum Grid - High-performance data grid
- Bryntum Scheduler - Resource scheduling component
- Bryntum Scheduler Pro - Advanced scheduling with dependencies
- Bryntum Gantt - Project planning and management
- Bryntum Calendar - Full-featured calendar component
- Bryntum TaskBoard - Kanban-style task management
Explore our comprehensive collection of demos:
| Product | JavaScript | React | Vue | Angular | |-------------------|:------------------------------------------------------------------------------------:|:--------------------------------------------------------------------------:|:----------------------------------------------------------------------:|:------------------------------------------------------------------------------:| | Grid | Grid JavaScript demos | Grid React demos | Grid Vue demos | Grid Angular demos | | Scheduler | Scheduler JavaScript demos | Scheduler React demos | Scheduler Vue demos | Scheduler Angular demos | | Scheduler Pro | Scheduler Pro JavaScript demos | Scheduler Pro React demos | Scheduler Pro Vue demos | Scheduler Pro Angular demos | | Gantt | Gantt JavaScript demos | Gantt React demos | Gantt Vue demos | Gantt Angular demos | | Calendar | Calendar JavaScript demos | Calendar React demos | Calendar Vue demos | Calendar Angular demos | | TaskBoard | TaskBoard JavaScript demos | TaskBoard React demos | TaskBoard Vue demos | TaskBoard Angular demos |
Online references
License and copyright
This wrapper depends on Bryntum Gantt, which is commercial software and requires a paid license. Please visit the Bryntum Gantt End User License for the full text of the license.
Copyright © 2009-2026, Bryntum All rights reserved.
