|
1 | | -# Customizing Columns using Templates and Adding a Custom Toolbar in React Gantt Chart |
| 1 | +# React Gantt Chart with Custom Column Templates and Toolbar |
2 | 2 |
|
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. |
4 | 4 |
|
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. |
6 | 7 |
|
7 | | -Column Template: https://ej2.syncfusion.com/react/documentation/gantt/columns/#column-template |
| 8 | +## Project Overview |
8 | 9 |
|
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. |
10 | 11 |
|
11 | | -Toolbar Template: https://ej2.syncfusion.com/react/documentation/gantt/tool-bar/#built-in-and-custom-items-in-toolbar |
| 12 | +## Features |
12 | 13 |
|
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 |
14 | 20 |
|
15 | | -Column Template: https://ej2.syncfusion.com/react/demos/#/material/gantt/column-template |
| 21 | +## Getting Started |
16 | 22 |
|
17 | | -Header Template: https://ej2.syncfusion.com/react/demos/#/material/gantt/header-template |
| 23 | +### Prerequisites |
18 | 24 |
|
19 | | -Toolbar Template: https://ej2.syncfusion.com/react/demos/#/material/gantt/toolbar-template |
| 25 | +- Node.js (LTS or later) |
| 26 | +- npm |
20 | 27 |
|
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 |
23 | 29 |
|
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. |
0 commit comments