סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
blockly > חסימה > hasIcon
שיטת Block.hasIcon()
Signature:
hasIcon(type: IconType<IIcon>): boolean;
פרמטרים
החזרות:
בוליאני
הערך הוא True אם קיים בבלוק סמל מהסוג הנתון. אחרת, הערך הוא false.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-21 (שעון UTC).
[null,null,["עדכון אחרון: 2024-08-21 (שעון UTC)."],[[["The `Block.hasIcon()` method checks for the presence of a specific icon type on a block."],["It accepts an `IconType` as input and returns `true` if the icon is found, otherwise `false`."]]],["The `Block.hasIcon()` method checks for the existence of a specific icon type on a block. It takes one parameter, `type`, of `IconType\u003cIIcon\u003e`. The method returns a boolean value: `true` if an icon of the specified type is present on the block, and `false` if it is not. It determines whether the block contains an icon with the given icon `type`.\n"]]