SMART datagrid v.1 > Classes > GridBody

[ grids ver.1.3.5]   Back  Forward

DataLudi.GridBody.tooltipCallback  property

Callback function which returns HTML to be displayed in tooltip when the mouse is over data cell for Certain Time

funciton (index:CellIndex):String;

You can specify callback of each column by ValueColum.tooltipCallback, and if specify this column callback, this property will be ignored. In addition, if specify DataCellRenderer.showTooltip in renderer which is specified in each column or individual cell, tooltip for the corresponding renderer will be displayed automatically and this property will be ignored. 

In order to display tooltip, nonempty HTML should be returned from this callback, and DisplayOptions.showTooltip should be specified as true first. 

Defaults to null.

Getter
function tooltipCallback(): Function
Setter
function setTooltipCallback(value: Function)
Code -1
    grid.setBody({
        tooltipCallback: function (index) {
            var val = index.getValue();
            return '' + val + '';
        }  
    });
See Also
DisplayOptions.showTooltip
ValueColumn.tooltipCallback
DataCellRenderer.showTooltip
CellIndex.getValue
Examples
Tooltips