Skip to content

Commit ecd42fd

Browse files
Merge pull request #2 from SyncfusionExamples/1021730-readme
1021730: Create and Add a Comprehensive README for EJ2 Gantt Chart Repositories
2 parents f0574fb + 7970f6f commit ecd42fd

2 files changed

Lines changed: 37 additions & 15 deletions

File tree

‎README.md‎

Lines changed: 36 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,47 @@
1-
# Customizing Columns using Templates and Adding a Custom Toolbar in React Gantt Chart
1+
# React Gantt Chart with Custom Column Templates and Toolbar
22

3-
A quick-start project that helps you to customize the column header and data in the Gantt Chart using templates. This project also contains a code snippet to add a custom toolbar button in the Gantt Chart.
3+
A React sample repository demonstrating the Syncfusion React Gantt Chart component with custom column templates, resource rendering, and toolbar-based interactions.
44

5-
Documentation:
5+
## Repository description
6+
This repository provides a React example that showcases a Syncfusion Gantt Chart configured with custom resource column templates, header templates, and toolbar actions for controlling filtering and task presentation.
67

7-
Column Template: https://ej2.syncfusion.com/react/documentation/gantt/columns/#column-template
8+
## Project Overview
89

9-
Header Template: https://ej2.syncfusion.com/react/documentation/gantt/columns/#custom-column-header
10+
The sample focuses on extending the default Gantt chart behavior by customizing how resource information is displayed within columns and by handling toolbar actions programmatically. It highlights how template support and toolbar events can be used together to control filtering and task visibility in a structured project timeline.
1011

11-
Toolbar Template: https://ej2.syncfusion.com/react/documentation/gantt/tool-bar/#built-in-and-custom-items-in-toolbar
12+
## Features
1213

13-
Online examples:
14+
- Custom `Resources` column template
15+
- Custom `Resources` header template
16+
- Built-in toolbar actions such as `CollapseAll` and `ExpandAll`
17+
- Custom toolbar actions for filtering and clearing filters
18+
- Programmatic filtering triggered through toolbar events
19+
- Support for nested tasks, dependencies, and resource assignment
1420

15-
Column Template: https://ej2.syncfusion.com/react/demos/#/material/gantt/column-template
21+
## Getting Started
1622

17-
Header Template: https://ej2.syncfusion.com/react/demos/#/material/gantt/header-template
23+
### Prerequisites
1824

19-
Toolbar Template: https://ej2.syncfusion.com/react/demos/#/material/gantt/toolbar-template
25+
- Node.js (LTS or later)
26+
- npm
2027

21-
## Project prerequisites
22-
Make sure that you have the latest versions of NodeJS and visual studio code in your machine before starting to work on this project.
28+
### Install
2329

24-
### How to run this application?
25-
To run this application, you need to clone the `customizing-columns-using-templates-and-adding-a-custom-toolbar-in-react-gantt-chart` repository and then open it in Visual Studio Code. Now, simply install all the necessary react packages into your current project using the npm install command and run your project using the npm start command.
30+
```bash
31+
npm install
32+
```
33+
34+
### Run
35+
36+
```bash
37+
npm start
38+
```
39+
40+
Open `http://localhost:3000`.
41+
42+
## Notes
43+
44+
- The sample renders a `GanttComponent` configured with `taskFields` mapping.
45+
- Column customization is implemented using `template` and `headerTemplate`.
46+
- Toolbar click handlers apply and clear filters dynamically.
47+
- Resource images are loaded from a public Syncfusion demo CDN for display purposes.

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
"@types/react-dom": "^16.9.10",
1414
"react": "^17.0.1",
1515
"react-dom": "^17.0.1",
16-
"react-scripts": "4.0.1",
16+
"react-scripts": "5.0.1",
1717
"typescript": "^4.1.3",
1818
"web-vitals": "^0.2.4"
1919
},

0 commit comments

Comments
 (0)