סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
blockly > חסימה > getDisabledReasons
שיטת Block.getDisabledReasons()
לקבל רשימה של סיבות להשבתה הנוכחית של החסימה, אם יש כזו. אם החסימה מופעלת, הקבוצה הזו תהיה ריקה.
Signature:
getDisabledReasons(): ReadonlySet<string>;
החזרות:
ReadonlySet<string>
פירוט הסיבות להשבתת החסימה, אם יש כאלה.
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-21 (שעון UTC).
[null,null,["עדכון אחרון: 2024-08-21 (שעון UTC)."],[[["The `getDisabledReasons()` method returns a set of strings explaining why a block is disabled."],["If the block is enabled, the method returns an empty set."],["This method is helpful for understanding the current state of a block and identifying potential issues."]]],["The `Block.getDisabledReasons()` method retrieves a read-only set of strings detailing why a block is disabled. If the block is enabled, this set is empty. The method's signature is `getDisabledReasons(): ReadonlySet\u003cstring\u003e`. It returns a `ReadonlySet\u003cstring\u003e` containing the reasons for the block's disabled state.\n"]]