блочный > ContextMenuRegistry > RegistryItem > preconditionFn
Подпись:
preconditionFn: (p1: Scope) => string;
,
блочный > ContextMenuRegistry > RegistryItem > preconditionFn
Подпись:
preconditionFn: (p1: Scope) => string;
Если не указано иное, контент на этой странице предоставляется по лицензии Creative Commons "С указанием авторства 4.0", а примеры кода – по лицензии Apache 2.0. Подробнее об этом написано в правилах сайта. Java – это зарегистрированный товарный знак корпорации Oracle и ее аффилированных лиц.
Последнее обновление: 2025-01-08 UTC.
[null,null,["Последнее обновление: 2025-01-08 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."]]],[]]