調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
ブロックする >テーマ >getComponentStyle
Theme.getComponentStyle() メソッド
指定された Blockly UI コンポーネントのスタイルを取得します。スタイル値が文字列の場合、名前付き参照の値の検索が試行されます。
署名:
getComponentStyle(componentName: string): string | null;
パラメータ
パラメータ |
型 |
説明 |
componentName |
文字列 |
コンポーネントの名前。 |
戻り値:
文字列 |null
スタイルの値。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-10-15 UTC。
[null,null,["最終更新日 2024-10-15 UTC。"],[[["The `getComponentStyle` method retrieves the style for a specific Blockly UI component based on its name."],["It handles style values that are strings, attempting to resolve any named references within them."],["If a style is found for the given component name, it's returned; otherwise, `null` is returned."]]],[]]