blockly > 扩展 > buildTooltipWithFieldText

Extensions.buildTooltipWithFieldText() 函数

构建将安装动态提示的扩展函数。提示消息应包含字符串“%1”,并且该字符串将替换为已命名字段的文本。

Signature:

export declare function buildTooltipWithFieldText(msgTemplate: string, fieldName: string): (this: Block) => void;

参数

参数 类型 说明
msgTemplate string 消息文本到该模板表单的结尾,带有 %1 占位符。
fieldName string 包含替换文字的字段。

返回

(此处为 Block)=> void

扩展函数。