סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
blockly > blockRendering > PathObject > updateHighlighted
שיטת blockRendering.PathObject.updateupdateed()
אפשר לקבוע אם הבלוק יציג או לא. לרוב, הדגשה של חסימה משמשת לסימון חזותי של בלוקים שמתבצעים כרגע.
Signature:
updateHighlighted(enable: boolean): void;
פרמטרים
פרמטר |
סוג |
תיאור |
enable |
בוליאני |
הערך יהיה True אם הוא מודגש. |
החזרות:
ריק
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-21 (שעון UTC).
[null,null,["עדכון אחרון: 2024-08-21 (שעון UTC)."],[[["The `blockRendering.PathObject.updateHighlighted()` method controls the visual highlighting of a block, often used to indicate execution."],["This method accepts a boolean parameter, `enable`, to turn highlighting on (true) or off (false)."],["Calling `updateHighlighted()` with the appropriate boolean value will visually update the block to reflect its highlighted or non-highlighted state."]]],["The `updateHighlighted` method in `blockRendering.PathObject` controls a block's highlight state. It takes a boolean parameter, `enable`. When `enable` is set to `true`, the block is visually highlighted, commonly indicating execution. When `enable` is `false`, the highlight is removed. The method does not return a value. This highlighting feature is used to show a visual marker for the active or executed blocks.\n"]]