sesaparcours
    Preparing search index...

    Fake class which should be extended to avoid inheriting static properties

    Hierarchy (View Summary)

    Index

    Constructors

    • Class for the registry of context menu items. This is intended to be a singleton. You should not create a new instance, and only access this class from Blockly.ContextMenuRegistry.registry.

      Returns ContextMenuRegistry__Class

    Methods

    • Gets the valid context menu options for the given scope type (e.g. block or workspace) and scope. Blocks are only shown if the preconditionFn shows they should not be hidden.

      Parameters

      • scopeType: ScopeType

        Type of scope where menu should be shown (e.g. on a block or on a workspace)

      • scope: Blockly.ContextMenuRegistry.Scope

        Current scope of context menu (i.e., the exact workspace or block being clicked on)

      Returns ContextMenuOption[]

      the list of ContextMenuOptions

    • Parameters

      • id: string

        The ID of the RegistryItem to get.

      Returns RegistryItem

      RegistryItem or null if not found

    • Registers a RegistryItem.

      Parameters

      Returns void

      if an item with the given ID already exists.

    • Unregisters a RegistryItem with the given ID.

      Parameters

      • id: string

        The ID of the RegistryItem to remove.

      Returns void

      if an item with the given ID does not exist.