zg-layout-controls

The <zg-layout-controls> tag is a container for the icons that toggle between row mode and card mode for the grid. The <zg-layout-controls> web component is created internally and should not be placed directly in the user's HTML, however the user can style the <zg-layout-controls> using CSS variables and the zg-layout-controls selector.

Image of the DOM relationship for the zg-layout-controls web component tag

Related Web Components

Usage

<zg-layout-controls> allows you to switch between normal row mode and condensed card mode for the grid. You can set these toggle controls with the layout-controls attribute on the <zing-grid> tag.

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

Attributes

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

CSS Variables

There are no CSS variables available for the <zg-head> web component.

CSS Selector

<zg-layout-controls> can be styled by common CSS selectors.

zg-layout-controls {
  background: red;
}