• Getting Started

  • Data

  • Chart Types

  • Chart Elements

  • Integrations

  • API

  • Tools

  • FAQ

  • Change Log

  • <zg-filter-menu>

    Interactive Storybook Playground

    The <zg-filter-menu> tag is the container for the menu that appears when clicking on the column filter button. It is used as a CSS target for styling by the developer. The <zg-filter-menu> web component should not be accessed specifically beyond styling.

    Image of the DOM relationship for the zg-filter-menu web component tag

    Related Web Components

    Usage

    The <zg-filter> element is a generated element added to <zing-grid> when the filter attribute is defined.

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

    Attributes

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

    CSS Variables

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

    :root {
    --zg-filter-menu-background: red;
    }
    

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

    CSS Shadow Parts

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

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

    Below is a list of all the associated ZGFilterMenu 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-filter-menu> web component.