blockly > Theme > getComponentStyle
Theme.getComponentStyle() メソッド
特定の Blockly UI コンポーネントのスタイルを取得します。スタイル値が文字列の場合は、名前付き参照の値を検索します。
署名:
getComponentStyle(componentName: string): string | null;
パラメータ
パラメータ | 種類 | 説明 |
---|---|---|
componentName | string | コンポーネントの名前。 |
戻り値:
文字列 | null
スタイルの値。