• Getting Started

  • Data

  • Chart Types

  • Chart Elements

  • Integrations

  • API

  • Tools

  • FAQ

  • Change Log

  • <zg-select>

    Interactive Storybook Playground

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

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

    Related Web Components

    Usage

    The <zg-select> element is a generated element added to <zg-pager> when the pager attribute is defined.

    <zing-grid
      pager
      src="https://cdn.zinggrid.com/datasets/user-roles.json">
    </zing-grid>
    

    Attributes

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

    CSS Variables

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

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

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

    zg-select {
      background: red;
    }
    

    CSS Shadow Parts

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

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

    Below is a list of all the associated ZGSelect 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-select> web component.