סקר מחקר: נשמח לשמוע על החוויה שלך עם Blockly
לפתיחת הסקר
blockly > ContextMenuRegistry > RegistryItem > preconditionFn
Signature:
preconditionFn: (p1: Scope) => string;
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-09-12 (שעון UTC).
[null,null,["עדכון אחרון: 2024-09-12 (שעון UTC)."],[[["`preconditionFn` is a property of `RegistryItem` within Blockly's `ContextMenuRegistry`."],["It's a function that takes a Scope as input and returns a string, likely used to determine if a context menu item should be displayed."],["The returned string may indicate the display state or provide further information for handling the context menu item."]]],["The `preconditionFn` property, part of the `ContextMenuRegistry.RegistryItem`, is a function signature. This function takes a `Scope` object as input (parameter `p1`). It returns a string value as its output. This signature defines the structure of a function used for preconditioning within the context menu registry.\n"]]