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

Constructors

constructor

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.

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

  • 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

  • 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