experiment_id: web-retrieval-v1
fixture_id: /docs/api/tags/zg-tooltip
mode: provenance
representation: html
origin_response_id: 334b4ab6c8c387a5deffe50ed6ad6b47
version: 2026-10-21
version_created_at_utc: 2026-10-21T20:42:35.655Z
version_nonce: a938374098d4365adff7b9e2c0a01d1b
generated_at_utc: 2026-11-17T00:10:26.289Z
response_nonce: 7a78605713c8d9e8c21be8384cd83cab
Docs Version 1

<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

ZGTooltip Relationships
Component Relationship Type Ancestor
ZingGrid Parent Generated n/a

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>
Top

Attributes

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

Top

CSS Variables

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

Top

CSS Selector

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

zg-tooltip {
  background: red;
}
Top

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
Name Description
close The tooltip close icon
Top

Slots

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

Top

[api: <zg-tooltip>]