gantt-task-react icon indicating copy to clipboard operation
gantt-task-react copied to clipboard

is it possible to add custom columns in the task list table?

Open MrWorldWide101 opened this issue 2 years ago • 3 comments

MrWorldWide101 avatar Apr 27 '22 06:04 MrWorldWide101

Yes, by overriding providing the default TaskListTable and TaskListHeader functions. You will need to extend the Task interface if you want to add new columns in the data that you provide. See the styling options in the documentation at the bottom Link

Graeme43 avatar Apr 27 '22 08:04 Graeme43

can you give an example code , because I didn't understand what you said above.

Ankit10Kumar avatar Nov 15 '22 13:11 Ankit10Kumar

can you give an example code , because I didn't understand what you said above.

take a look at these two files as references:

task-list-table.tsx

task-list-header.tsx

You can implement ur own components and render whatever you want. Just provide ur custom components as TaskListHeader and TaskListTable according to GanttProps interface public-types.ts

ar7max avatar Mar 27 '24 04:03 ar7max