bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
54 stars 6 forks source link

Add a config to configure adding name column automatically #9858

Open taauntik opened 2 months ago

taauntik commented 2 months ago

Forum post

I am using column type template to add a link to "name" field.

It works fine for all columns but for name field when I change it to type template, then a new column is being added with just column.type = "name".

Is this some behaviour of Gantt to add back a name column?

Here is the code:

            if (['name', 'createdby'].includes(column.field)) {
                        column.type = 'template';

                    column.template = (data: any) => {
                        return `<a class="tpg-gantt-link" href="javascript:;">${data.value}</a>`
                    }
                }

Screenshot 2024-08-20 083410.png