Options
All
  • Public
  • Public/Protected
  • All
Menu

a modified implementation of the Menu Renderer

Hierarchy

  • Renderer
    • Renderer

Index

Constructors

constructor

  • Returns Renderer

Methods

createIconClass

  • createIconClass(data: IRenderData): string
  • 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.

createItemARIA

  • createItemARIA(data: IRenderData): ElementARIAAttrs
  • 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.

createItemClass

  • createItemClass(data: IRenderData): string
  • 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.

createItemDataset

  • createItemDataset(data: IRenderData): ElementDataset
  • 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.

formatLabel

  • formatLabel(data: IRenderData): Child
  • 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.

formatShortcut

  • formatShortcut(data: IRenderData): Child
  • 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.

renderIcon

  • renderIcon(data: IRenderData): VirtualElement
  • Render the icon element for a menu item.

    Parameters

    • data: IRenderData

      The data to use for rendering the icon.

    Returns VirtualElement

    A virtual element representing the item icon.

renderItem

  • renderItem(data: IRenderData): VirtualElement
  • 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.

renderLabel

  • renderLabel(data: IRenderData): VirtualElement
  • 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.

renderShortcut

  • renderShortcut(data: IRenderData): VirtualElement
  • 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.

renderSubmenu

  • renderSubmenu(data: IRenderData): VirtualElement
  • Render the submenu icon element for a menu item.

    Parameters

    • data: IRenderData

      The data to use for rendering the submenu icon.

    Returns VirtualElement

    A virtual element representing the submenu icon.

Generated using TypeDoc