調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
ブロックする >レジストリ >hasItem
registry.hasItem() 関数
指定された型と名前のアイテムがレジストリに含まれているかどうかを返します。
署名:
export declare function hasItem<T>(type: string | Type<T>, name: string): boolean;
パラメータ
パラメータ |
型 |
説明 |
type |
文字列 |型<T> |
プラグインのタイプ。(フィールド、レンダラなど) |
name |
文字列 |
プラグインの名前。(例: field_angle、geras) |
戻り値:
ブール値
指定された型と名前のアイテムがレジストリにあれば true、そうでない場合は false。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-08-21 UTC。
[null,null,["最終更新日 2024-08-21 UTC。"],[[["Determines if the Blockly registry contains a specific item based on its type and name."],["Uses the `type` parameter to specify the category of the item (e.g., 'Field', 'Renderer') and the `name` parameter for its unique identifier."],["Returns `true` if an item with the given type and name exists in the registry, otherwise returns `false`."]]],[]]