Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Renderer

The default implementation of IRenderer.

Notes

Subclasses are free to reimplement rendering methods as needed.

Hierarchy

  • Renderer

Implements

Index

Methods

createIconClass

  • 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

  • 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

  • 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

  • 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

  • Create the render content for the label node.

    Parameters

    • data: IRenderData

      The data to use for the label content.

    Returns h.Child

    The content to add to the label node.

formatShortcut

  • Create the render content for the shortcut node.

    Parameters

    • data: IRenderData

      The data to use for the shortcut content.

    Returns h.Child

    The content to add to the shortcut node.

renderIcon

  • 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

renderLabel

  • 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

  • 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

  • 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