تنظيم صفحاتك في مجموعات
يمكنك حفظ المحتوى وتصنيفه حسب إعداداتك المفضّلة.
blockly > الإدخالات > الإدخال > setCheck
يمكنك من خلال هذا الإجراء تغيير توافق عملية ربط.
Signature:
setCheck(check: string | string[] | null): Input;
المعلمات
المعلمة |
النوع |
الوصف |
تحديد |
سلسلة | سلسلة[] | فارغ |
نوع قيمة متوافق أو قائمة أنواع قيم خالية إذا كانت جميع الأنواع متوافقة. |
المرتجعات:
الإدخال
الإدخال الذي يتم تعديله (للسماح بالتسلسل).
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-10-11 (حسب التوقيت العالمي المتفَّق عليه)
[[["يسهُل فهم المحتوى.","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 (حسب التوقيت العالمي المتفَّق عليه)"],[[["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"]]