סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
blockly > קלט > קלט > appendField
מוסיפים שדה (או תווית ממחרוזת) ואת כל שדות הקידומת והסיומת, בסוף שורת השדה של הקלט.
Signature:
appendField<T>(field: string | Field<T>, opt_name?: string): Input;
פרמטרים
פרמטר |
סוג |
תיאור |
שדה |
מחרוזת | שדה<T> |
משהו שצריך להוסיף כשדה. |
opt_name |
מחרוזת |
(אופציונלי) מזהה ניטרלי שיכול לשמש לאיתור של השדה הזה שוב. צריכה להיות ייחודית לבלוק המארח. |
החזרות:
קלט
הקלט שיש לצרף אליו (כדי לאפשר שרשור).
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-09-12 (שעון 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-09-12 (שעון UTC)."],[[["The `appendField` method adds a field (or label) to the end of a block input's field row."],["It accepts a field object or a string for the field content, and an optional name for identifying the field."],["The method returns the input object, allowing for chaining of multiple `appendField` calls."]]],["The `appendField` method adds a field or a string label to the end of an input's field row. It accepts either a string or a `Field` object as the `field` parameter. An optional `opt_name` parameter, a unique identifier, can also be provided for later retrieval. The method returns the modified `Input` object, enabling method chaining. This allows to append multiple field in a row.\n"]]