<zg-tooltip>

The <zg-tooltip> tag is a web component that serves as a container the the grid's tooltip and used as a CSS target for styling by the developer.. The <zg-tooltip> web component should not be accessed specifically beyond styling.

Image of the DOM relationship for the zg-tooltip web component tag

Related Web Components

Usage

The <zg-tooltip> element is a generated element added to <zing-grid> when the cell-tooltip-text or header-tooltip-text attribute is defined.

<zing-grid src="...">
  <zg-colgroup>
    <zg-column header-tooltip-text="I'm a tooltip"></zg-column>
    ...
  <zg-colgroup>
</zing-grid>

Attributes

There are no attributes available for the <zg-tooltip> web component.

CSS Variables

There are no CSS variables available for the <zg-tooltip> web component.

CSS Selector

<zg-tooltip> can be styled by common CSS selectors, like so:

zg-tooltip {
  background: red;
}

CSS Shadow Parts

<zg-tooltip> exposed elements within the shadow can be styled by CSS shadow parts, like so:

zg-tooltip::part(tooltip) {
  background-color: red;
}

Below is a list of all the associated ZGTooltip shadow parts. Check out the full list of CSS shadow parts or our Styling Basics guide to learn more about styling the grid.

ZGTooltip CSS Shadow Parts
NameDescriptionDemo
closeThe tooltip close icon

Slots

There are no slots available for the <zg-tooltip> web component.

[api: <zg-tooltip>]