a modified implementation of the Menu Renderer

Hierarchy

  • Renderer
    • Renderer

Constructors

Methods

  • Create the class name for the menu item icon.

    Parameters

    • data: IRenderData

      The data to use for the class name.

    Returns string

    The full class name for the item icon.

  • Create the aria attributes for menu item.

    Parameters

    • data: IRenderData

      The data to use for the aria attributes.

    Returns ElementARIAAttrs

    The aria attributes object for the item.

  • Create the class name for the menu item.

    Parameters

    • data: IRenderData

      The data to use for the class name.

    Returns string

    The full class name for the menu item.

  • Create the dataset for the menu item.

    Parameters

    • data: IRenderData

      The data to use for creating the dataset.

    Returns ElementDataset

    The dataset for the menu item.

  • Create the render content for the label node.

    Parameters

    • data: IRenderData

      The data to use for the label content.

    Returns Child

    The content to add to the label node.

  • Create the render content for the shortcut node.

    Parameters

    • data: IRenderData

      The data to use for the shortcut content.

    Returns Child

    The content to add to the shortcut node.

  • Render the virtual element for a menu item.

    Parameters

    • data: IRenderData

      The data to use for rendering the item.

    Returns VirtualElement

    A virtual element representing the item.

  • Render the label element for a menu item.

    Parameters

    • data: IRenderData

      The data to use for rendering the label.

    Returns VirtualElement

    A virtual element representing the item label.

  • Render the shortcut element for a menu item.

    Parameters

    • data: IRenderData

      The data to use for rendering the shortcut.

    Returns VirtualElement

    A virtual element representing the item shortcut.