調査アンケート: Blockly のご利用体験についてお聞かせください
アンケートを開始
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
ブロックする >入力 >入力 >setCheck
接続の互換性を変更する。
署名:
setCheck(check: string | string[] | null): Input;
パラメータ
パラメータ |
型 |
説明 |
チェック |
文字列 |string[] |null |
互換性のある値の型、または値の型のリスト。すべての型に互換性がある場合は null。 |
戻り値:
入力
変更される入力(チェーンを可能にするため)。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-10-11 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2024-10-11 UTC。"],[[["The `inputs.Input.setCheck()` method is used to define the type of values that a connection on a block can accept."],["It takes a string, an array of strings, or null as an argument, representing the allowed data type(s) or accepting all types if null."],["The method returns the modified Input object for chaining purposes, enabling developers to perform multiple operations on it sequentially."]]],["The `setCheck()` method modifies a connection's compatibility. It accepts a `check` parameter, which can be a string, an array of strings, or `null`. This parameter defines the compatible value type(s); `null` indicates that all types are compatible. The method returns the modified input, enabling method chaining. The purpose is to change the types of values that can be linked to an Input.\n"]]