סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
blockly > ContextMenu > setCurrentBlock
הגדרת הבלוק שאליו תפריט ההקשר מחובר כרגע.
Signature:
export declare function setCurrentBlock(block: Block | null): void;
פרמטרים
פרמטר |
סוג |
תיאור |
חסימה |
חסימה | null |
הבלוק שאליו מצורף תפריט ההקשר. |
החזרים:
void
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-11-06 (שעון UTC).
[null,null,["עדכון אחרון: 2024-11-06 (שעון UTC)."],[[["The `ContextMenu.setCurrentBlock()` function associates a context menu with a specific block."],["It takes one argument: the block to attach the context menu to, which can be a `Block` object or `null`."],["Calling this function with a `Block` object makes the context menu appear when right-clicking that block."],["Providing `null` as the argument detaches the context menu from any block."]]],[]]