A modified implementation of the TabBar Renderer.

Hierarchy

  • Renderer
    • Renderer

Constructors

Properties

closeIconSelector: ".lm-TabBar-tabCloseIcon" = ".lm-TabBar-tabCloseIcon"

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

Methods

  • 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.

  • Create the ARIA attributes for a tab.

    Parameters

    • data: IRenderData<any>

      The data to use for the tab.

    Returns ElementARIAAttrs | ElementBaseAttrs

    The ARIA attributes for the tab.

  • 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.

  • Create the dataset for a tab.

    Parameters

    • data: IRenderData<any>

      The data to use for the tab.

    Returns ElementDataset

    The dataset for the tab.

  • 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.

  • Create the inline style object for a tab.

    Parameters

    • data: IRenderData<any>

      The data to use for the tab.

    Returns ElementInlineStyle

    The inline style data for the tab.

  • 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.

  • Render the label element for a tab.

    Parameters

    • data: IRenderData<any>

      The data to use for rendering the tab.

    Returns VirtualElement

    A virtual element representing the tab label.

  • Render the virtual element for a tab.

    Parameters

    • data: IRenderData<any>

      The data to use for rendering the tab.

    Returns VirtualElement

    A virtual element representing the tab.