Options
All
  • Public
  • Public/Protected
  • All
Menu

a modified implementation of the CommandPalette Renderer

Hierarchy

  • Renderer
    • Renderer

Implements

  • IRenderer

Index

Methods

createIconClass

  • createIconClass(data: IItemRenderData): string

createItemClass

  • createItemClass(data: IItemRenderData): string
  • Create the class name for the command palette item.

    Parameters

    • data: IItemRenderData

      The data to use for the class name.

    Returns string

    The full class name for the command palette item.

createItemDataset

  • createItemDataset(data: IItemRenderData): ElementDataset
  • Create the dataset for the command palette item.

    Parameters

    • data: IItemRenderData

      The data to use for creating the dataset.

    Returns ElementDataset

    The dataset for the command palette item.

formatEmptyMessage

  • formatEmptyMessage(data: IEmptyMessageRenderData): h.Child
  • Create the render content for the empty message node.

    Parameters

    • data: IEmptyMessageRenderData

      The data to use for the empty message content.

    Returns h.Child

    The content to add to the empty message node.

formatHeader

  • formatHeader(data: IHeaderRenderData): h.Child
  • Create the render content for the header node.

    Parameters

    • data: IHeaderRenderData

      The data to use for the header content.

    Returns h.Child

    The content to add to the header node.

formatItemCaption

  • formatItemCaption(data: IItemRenderData): h.Child
  • Create the render content for the item caption node.

    Parameters

    • data: IItemRenderData

      The data to use for the caption content.

    Returns h.Child

    The content to add to the caption node.

formatItemLabel

  • formatItemLabel(data: IItemRenderData): h.Child
  • Create the render content for the item label node.

    Parameters

    • data: IItemRenderData

      The data to use for the label content.

    Returns h.Child

    The content to add to the label node.

formatItemShortcut

  • formatItemShortcut(data: IItemRenderData): h.Child
  • Create the render content for the item shortcut node.

    Parameters

    • data: IItemRenderData

      The data to use for the shortcut content.

    Returns h.Child

    The content to add to the shortcut node.

renderEmptyMessage

  • renderEmptyMessage(data: IEmptyMessageRenderData): VirtualElement
  • Render the empty results message for a command palette.

    Parameters

    • data: IEmptyMessageRenderData

      The data to use for rendering the message.

    Returns VirtualElement

    A virtual element representing the message.

renderHeader

  • renderHeader(data: IHeaderRenderData): VirtualElement

renderItem

  • renderItem(data: IItemRenderData): VirtualElement
  • Render the virtual element for a command palette item.

    Parameters

    • data: IItemRenderData

      The data to use for rendering the item.

    Returns VirtualElement

    A virtual element representing the item.

renderItemCaption

  • renderItemCaption(data: IItemRenderData): VirtualElement
  • Render the caption for a command palette item.

    Parameters

    • data: IItemRenderData

      The data to use for rendering the caption.

    Returns VirtualElement

    A virtual element representing the caption.

renderItemContent

  • renderItemContent(data: IItemRenderData): VirtualElement
  • Render the content for a command palette item.

    Parameters

    • data: IItemRenderData

      The data to use for rendering the content.

    Returns VirtualElement

    A virtual element representing the content.

renderItemIcon

  • renderItemIcon(data: IItemRenderData): VirtualElement

renderItemLabel

  • renderItemLabel(data: IItemRenderData): VirtualElement
  • Render the label for a command palette item.

    Parameters

    • data: IItemRenderData

      The data to use for rendering the label.

    Returns VirtualElement

    A virtual element representing the label.

renderItemShortcut

  • renderItemShortcut(data: IItemRenderData): VirtualElement
  • Render the shortcut for a command palette item.

    Parameters

    • data: IItemRenderData

      The data to use for rendering the shortcut.

    Returns VirtualElement

    A virtual element representing the shortcut.

Generated using TypeDoc