blockly > ToolboxCategory > updateFlyoutContents
ToolboxCategory.updateFlyoutContents() 方法
更新要在浮出控件中显示的内容。如果在内容更新时浮出控件处于打开状态,还必须调用工具箱上的 refreshSelection。
Signature:
updateFlyoutContents(contents: FlyoutDefinition | string): void;
参数
参数 | 类型 | 说明 |
---|---|---|
内容 | FlyoutDefinition | 字符串 | 要在弹出框中显示的内容。可以通过提供字符串来创建动态类别。 |
返回:
void