Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • Renderer
    • TabRenderer

Implements

  • IRenderer<any>

Index

Constructors

constructor

  • Construct a new renderer.

    Returns TabRenderer

Properties

closeIconSelector

closeIconSelector: string

A selector which matches the close icon node in a tab.

Methods

createIconClass

  • createIconClass(data: IRenderData<any>): string
  • Create the class name for the tab icon.

    Parameters

    • data: IRenderData<any>

      The data to use for the tab.

    Returns string

    The full class name for the tab icon.

createTabClass

  • createTabClass(data: IRenderData<any>): string
  • Create the class name for the tab.

    Parameters

    • data: IRenderData<any>

      The data to use for the tab.

    Returns string

    The full class name for the tab.

createTabDataset

  • createTabDataset(data: IRenderData<any>): ElementDataset
  • Create the dataset for a tab.

    Parameters

    • data: IRenderData<any>

      The data to use for the tab.

    Returns ElementDataset

    The dataset for the tab.

createTabKey

  • createTabKey(data: IRenderData<any>): string
  • Create a unique render key for the tab.

    Parameters

    • data: IRenderData<any>

      The data to use for the tab.

    Returns string

    The unique render key for the tab.

    Notes

    This method caches the key against the tab title the first time the key is generated. This enables efficient rendering of moved tabs and avoids subtle hover style artifacts.

createTabStyle

  • createTabStyle(__namedParameters: object): object

renderCloseIcon

  • renderCloseIcon(data: IRenderData<any>): VirtualElement
  • Render the close icon element for a tab.

    Parameters

    • data: IRenderData<any>

      The data to use for rendering the tab.

    Returns VirtualElement

    A virtual element representing the tab close icon.

renderIcon

  • renderIcon(data: IRenderData<any>): VirtualElement
  • Render the icon element for a tab.

    Parameters

    • data: IRenderData<any>

      The data to use for rendering the tab.

    Returns VirtualElement

    A virtual element representing the tab icon.

renderLabel

  • renderLabel(__namedParameters: object): VirtualElement

renderTab

Generated using TypeDoc