blockly > Theme > getComponentStyle

Theme.getComponentStyle() 方法

获取指定 Blockly 界面组件的样式。如果样式值为字符串,我们会尝试查找任何已命名引用的值。

Signature:

getComponentStyle(componentName: string): string | null;

参数

参数 类型 说明
componentName string 组件的名称。

返回

字符串 | null

样式值。