ブロックする >テーマ >getComponentStyle

Theme.getComponentStyle() メソッド

指定された Blockly UI コンポーネントのスタイルを取得します。スタイル値が文字列の場合、名前付き参照の値の検索が試行されます。

署名:

getComponentStyle(componentName: string): string | null;

パラメータ

パラメータ 説明
componentName 文字列 コンポーネントの名前。

戻り値:

文字列 |null

スタイルの値。