Skip to main content

blockly > Block > setTooltip

Block.setTooltip() method

Sets the tooltip for this block.

Signature:

setTooltip(newTip: Tooltip.TipInfo): void;

Parameters

Parameter

Type

Description

newTip

Tooltip.TipInfo

The 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