Blockly は 2025 年 11 月 10 日に Raspberry Pi Foundation に移行しました。ブログ投稿とよくある質問をご覧ください。
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ブロックする >[ブロック] >removeInput
このブロックから入力を削除します。
署名:
removeInput(name: string, opt_quiet?: boolean): boolean;
パラメータ
| パラメータ |
型 |
説明 |
| name |
文字列 |
入力の名前。 |
| opt_quiet |
ブール値 |
(省略可)入力がない場合にエラーが発生しないようにするには true にします。 |
戻り値:
ブール値
オペレーションが成功した場合は true、入力がなく、opt_quiet が true の場合は false。
例外
{エラー}: 入力が存在せず、opt_quiet が true でない場合は、
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-07-28 UTC。
[null,null,["最終更新日 2025-07-28 UTC。"],[],["The `Block.removeInput()` method removes an input from a block using the input's name. It accepts two parameters: `name` (a string specifying the input's name) and an optional `opt_quiet` (a boolean). If `opt_quiet` is true, the method returns false if the input is absent. If `opt_quiet` is false (or omitted) and the input is not found, it throws an error. The method returns `true` if the input is successfully removed.\n"]]