Our pure JavaScript Scheduler component


Post by kovacd »

The tooltip for the header is showing, but the tooltipRenderer is not working. I've check the examples and everything but no help. I am using the latest (v5.2.9) SchedulerPro version. Any ideas?

I have this code:

columns: [
        {
            type: 'resourceInfo',
            text: 'M',
            field: 'name',
            showEventCount: false,
            width: 5,
            editor: null,
            useLocaleSort: false,
            filterable: false,
            resizable: false,
            searchable: false,
            sortable: false,
            tooltip: resourceColumnTooltip(),
            tooltipRenderer: resourceColumnCellTooltip,
            renderer: resourceColumnErrors,
        },
    ],
    
const resourceColumnTooltip = () => { return StringHelper.encodeHtml('tooltip header') } const resourceColumnCellTooltip = ({record}: any) => { return 'just for testing' }

Post by tasnim »

Hello,

Have you enabled https://bryntum.com/products/schedulerpro/docs/api/Grid/feature/CellTooltip feature?

In the tooltipRenderer docs says

Renderer function for the cell tooltip (used with CellTooltip feature)...

here https://bryntum.com/products/schedulerpro/docs/api/Grid/column/Column#config-tooltipRenderer

Hope it helped.

Good Luck :),
Tasnim


Post by kovacd »

Hey,

after adding the following code, it started working:

        
cellTooltip: { hoverDelay: 300, textContent: true, },

Post by tasnim »

Glad to hear that it's working

All the best


Post Reply