Our state of the art Gantt chart


Post by Surekha »

Hi Team ,
We want to show certain data on hover of the indicator icon .
How can we proceed with this?
I have attached the picture of the hover message.

Attachments
hover_on_flag.PNG
hover_on_flag.PNG (17.61 KiB) Viewed 479 times

Post by mats »

Recommend you to study this demo: https://bryntum.com/examples/gantt/indicators/

Give a name to the indicator, it will be shown in the tooltip:

features : {
        // Enabling and configuring the Indicators feature
        indicators : {
            items : {
                // Early start/end dates indicator disabled
                earlyDates : false,

            // Custom indicator added
            beer : taskRecord =>  taskRecord.name.startsWith('C') ? {
                startDate : DateHelper.add(taskRecord.endDate, 2, 'day'),
                cls       : 'beer',
                iconCls   : 'b-fa b-fa-beer',
                name      : 'Post-task celebration beer'
            } : null
        }
    }
},

Post by Surekha »

Hi Team,
Im aware of using the indicators , but I want customize the field displayed in it and the structure of the default tool tip. As you can see in the above picture I have attached.


Post by mats »

Ok this is not yet supported using public API. You can try putting template as a function on your indicators feature config for now to return custom HTML. We'll add support for this!
https://github.com/bryntum/support/issues/3032


Post Reply