סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
blockly > blockRendering > IPathObject > updateSelected
שיטת blockRendering.IPathObject.updateSelected()
מוסיפים או מסירים עיצוב שמראה שנבחר בלוק.
Signature:
updateSelected(enabled: boolean): void;
פרמטרים
פרמטר |
סוג |
תיאור |
פעיל |
בוליאני |
|
החזרות:
ריק
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-08-21 (שעון UTC).
[null,null,["עדכון אחרון: 2024-08-21 (שעון UTC)."],[[["The `updateSelected` method is used to visually indicate whether a block is selected or not by applying or removing styling."],["It takes a single boolean parameter, `enabled`, which determines if the selected styling should be applied (`true`) or removed (`false`)."],["This method is part of the `IPathObject` interface within the `blockRendering` namespace in Blockly."]]],["The `updateSelected` method, part of the `IPathObject` interface, modifies a block's styling to indicate whether it is selected or not. It takes a single boolean parameter, `enabled`. If `enabled` is true, styling to show selection is added; if false, selection styling is removed. The method returns nothing. This is used to update the visual state of blocks within a block rendering system.\n"]]