<zg-option-list>
Interactive Storybook Playground
The <zg-option-list>
tag is a web component that goes within <zg-select>
as the option list and used as a CSS target for styling by the developer. The <zg-option-list>
web component should not be accessed specifically beyond styling.
Related Web Components
Usage
The <zg-option-list>
element is a generated element added to <zg-select>
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-option-list>
web component.
CSS Variables
<zg-option-list>
can be styled with CSS variables, like so:
:root {
--zg-option-list-background: red;
}
Below is a list of all the associated <zg-option-list
> 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-option-list>
can be styled by common CSS selectors, like so:
zg-option-list {
background: red;
}
CSS Shadow Parts
<zg-option-list>
exposed elements within the shadow can be styled by CSS shadow parts, like so:
zg-option-list::part(list) {
background-color: red;
}
Below is a list of all the associated ZGOptionList 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-option-list>
web component.