• Getting Started

  • Data

  • Chart Types

  • Chart Elements

  • Integrations

  • API

  • Tools

  • FAQ

  • Change Log

  • <zg-head-cell>

    Interactive Storybook Playground

    The <zg-head-cell> is a web component that is a container for the head cells (<zg-head-cell-cell>) of the data grid specified via the head-cell attribute found on <zg-column> tags.

    The tag roughly corresponds to the idea of the <thead> tag used in HTML tables. The <zg-head-cell> tag is generated by the library and should not be placed in a grid manually by a user. Instead, it is used as a styling target for CSS.

    Image of the DOM relationship for the zg-head-cell web component tag

    Related Web Components

    Attributes

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

    CSS Variables

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

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

    Below is a list of all the associated --zg-head-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-head-cell> can be styled by common CSS selectors, like so:

    zg-head-cell {
      background: red;
    }
    

    CSS Shadow Parts

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

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

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

    Slots

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