Our state of the art Gantt chart


Post by swapnakonakanchi »

Hi team,

How to enable the b-sch-terminals-visible when select the task as below.

Attachments
headermenu.png
headermenu.png (19.06 KiB) Viewed 151 times

Post by marcio »

Hey,

You can call the following function https://bryntum.com/products/gantt/docs/api/Scheduler/feature/mixin/DependencyCreation#function-showTerminals to display the terminals, and that function probably would be called inside the selectionChange event handler https://bryntum.com/products/gantt/docs/api/Grid/view/mixin/GridSelection#event-selectionChange

Best regards,
Márcio


Post by swapnakonakanchi »

Hi, Can you please provide any sample code where we have to call this show-terminals for bryntum gantt.
I tried as below but not working

listeners: {
selectionChange: ({ selected }: { selected: any }) => {
          showTerminals(timeSpanRecord, element){
            console.log(timeSpanRecord)
          }
       
}, )

Post by alex.l »

Hi, showTerminals may be called like this

gantt.features.dependencies.showTerminals(record);

All the best,
Alex


Post Reply