@mathjax/src
    Preparing search index...

    The subclass of ContextMenu that handles the needs of the MathJax contextual menu (in particular, tying it to a MathItem).

    Index

    Properties

    errorMsg: string = ''

    The error message for the current MathItem

    jax: JaxList

    The jax object from the parent menu item

    mathItem: MathItem<HTMLElement, Text, Document> = null

    The MathItem that has posted the menu

    nofocus: boolean = false

    Records the mathItem's nofocus value when a SelectInfo dialog is opened

    settings: OptionList

    The document options

    DynamicSubmenus: Map<
        string,
        [
            (
                menu: MJContextMenu,
                sub: Submenu,
                callback: (sub: SubMenu) => void,
            ) => void,
            string,
        ],
    > = ...

    Static map to hold methods for re-computing dynamic submenus.

    Methods

    • Find an item in the menu (recursively descending into submenus, if needed)

      Parameters

      • ...names: string[]

        The menu IDs to look for

      Returns Item

      The menu item (or null if not found)

    post

    • post(x?: any, y?: number): void

      Before posting the menu, set the name for the ShowAs and CopyToClipboard menus, enable/disable the semantics check item, and set the dynamic submenus.

      Parameters

      • Optionalx: any
      • Optionaly: number

      Returns void