• Getting Started

  • Data

  • Chart Types

  • Chart Elements

  • Integrations

  • API

  • Tools

  • FAQ

  • Change Log

  • <zg-cell>

    Interactive Storybook Playground

    The <zg-cell> tag is a web component that controls the styling and display for the grid cells. It corresponds to HTML table's td tag and is automatically inserted so it should not be placed directly in user's HTML.

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

    Related Web Components

    Attributes

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

    CSS Variables

    <zg-cell> can be styled with CSS variables, like so:

    :root {
      --zg-cell-background: red;
    }
    

    Below is a list of all the associated --zg-cell CSS variables. Check out the full list of CSS variables or our Styling Basics guide to learn more about styling the grid.

    CSS Selector

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

    zg-cell {
      background: red;
    }
    

    Slots

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