Hi All,
I want to float text value as show in the following picture, how to do it?
.
I tried to config floating attribute, but there is a syntax error
Sounds like you're looking for the CellTooltip feature. Please check the docs here https://bryntum.com/products/gantt/docs/#Grid/feature/CellTooltip
features : {
// enable CellTooltip and configure a default renderer
cellTooltip : {
tooltipRenderer : ({ record, column }) => record[column.field],
hoverDelay : 200
}
},
Best regards,
Tasnim
How to ask for help? Please read our Support Policy
Sorry, forgot to mention. As you're in react you'd need to get rid of the features object and add Feature
suffix after the feature-name
cellTooltipFeature : {
tooltipRenderer : ({ record, column }) => record[column.field],
hoverDelay : 200
}
And it should work fine for you now.
Best regards,
Tasnim
How to ask for help? Please read our Support Policy
In the BryntumCalendarProps, I didn't find cellTooltipFeature, only scheduleTooltipFeature. It seems that cellTooltipFeature doesn't work.
scheduleTooltipFeature : {
tooltipRenderer : ({ record, column } : any) => record[column.field],
hoverDelay : 200
},
I also tried to add tooltipRenderer into columns, but it didn't work.
Finally, I added the following config in the models-list-features-cellTooltip, and it worked.