blockly > Field > setTooltip
Field.setTooltip() method
Sets the tooltip for this field.
Signature:
setTooltip(newTip: Tooltip.TipInfo | null): void;
Parameters
Parameter | Type | Description |
---|---|---|
newTip | Tooltip.TipInfo | null | The text for the tooltip, a function that returns the text for the tooltip, a parent object whose tooltip will be used, or null to display the tooltip of the parent block. To not display a tooltip pass the empty string. |
Returns:
void