סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
blockly > קלט > קלט > setCheck
שינוי התאימות של חיבור.
Signature:
setCheck(check: string | string[] | null): Input;
פרמטרים
פרמטר |
סוג |
תיאור |
check |
מחרוזת | string[] | null |
סוג ערך תואם או רשימה של סוגי ערכים. המערכת תציג ערך של null אם כל הסוגים תואמים. |
החזרות:
קלט
הקלט שעבר שינוי (כדי לאפשר שרשור).
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 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"]]