Skip to main content

Home > blockly > Block > setTooltip

Block.setTooltip() method

Sets the tooltip for this block.

Signature:

setTooltip(newTip: Tooltip.TipInfo): void;

Parameters

ParameterTypeDescription
newTipTooltip.TipInfoThe text for the tooltip, a function that returns the text for the tooltip, or a parent object whose tooltip will be used. To not display a tooltip pass the empty string.

Returns:

void