סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
blockly > חסימה > removeIcon
שיטת Block.removeIcon()
מסיר את הסמל ש-getType שלו תואם ל-iconType הנתון של הבלוק.
Signature:
removeIcon(type: IconType<IIcon>): boolean;
פרמטרים
פרמטר |
סוג |
תיאור |
סוג |
IconType<IIcon> |
סוג הסמל שיש להסיר מהבלוק. |
החזרות:
בוליאני
הערך הוא True אם נמצא סמל מהסוג הנתון. אחרת, הערך הוא false.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-09-10 (שעון UTC).
[null,null,["עדכון אחרון: 2024-09-10 (שעון UTC)."],[[["The `Block.removeIcon()` method removes an icon from a block based on its type."],["It accepts the icon type as an argument and returns `true` if the icon was successfully removed, `false` otherwise."]]],["The `Block.removeIcon()` method removes a specific icon from a block based on its type. It accepts an `IconType` parameter, specifying the icon to remove. The method returns a boolean value: `true` if an icon of the specified type was found and removed, and `false` otherwise. The only parameter is the icon's type. This method is used to delete the specified icon.\n"]]