סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
blockly > ComponentManager > (מנהל הרכיבים) addCapability
שיטת ComponentManager.addCapability()
הוספת יכולת לרכיב רשום קיים.
Signature:
addCapability<T>(id: string, capability: string | Capability<T>): void;
פרמטרים
פרמטר |
סוג |
תיאור |
id [מזהה] |
מחרוזת |
מזהה הרכיב שאליו רוצים להוסיף את היכולת. |
יכולת |
מחרוזת | יכולת<T> |
היכולת להוסיף. |
החזרות:
ריק
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-29 (שעון UTC).
[null,null,["עדכון אחרון: 2024-08-29 (שעון UTC)."],[[["The `ComponentManager.addCapability()` method allows adding a new capability to an existing registered component."],["It requires the component's ID and the capability (as a string or `Capability` object) as input."],["This method doesn't return any value and modifies the component directly."]]],[]]