Docs Version 1

<zg-filter-summary>

Interactive Storybook Playground

The <zg-filter-summary> tag is the container for the that appears when clicking on the column filter button. The <zg-filter-summary> web component should not be accessed specifically beyond styling.

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

Related Web Components

Usage

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

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

Attributes

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

Top

CSS Variables

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

:root {
--zg-filter-summary-background: red;
}
ZGFilterSummary CSS Variables and Default Values
Name Default Description Demo CSS Ref
Top

CSS Shadow Parts

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

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

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

ZGFilterSummary CSS Shadow Parts
Name Description
Top

Slots

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

Top

[api: <zg-filter-summary>]