<zg-editor-row>

The <zg-editor-row> tag is a web component that holds the details of the edit mode for the grid. <zg-editor-row> is created implicitly by the grid and should be placed directly in the user's HTML. The element can inherently be styled through CSS variables or by targeting the tag directly.

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

Related Web Components

Attributes

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

CSS Variables

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

root: {
--zg-editor-row-input-color: red;
}

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

ZGEditorRow CSS Variables and Default Values
NameDefaultDescriptionDemoCSS Ref
--zg-editor-row-input-background#f5f5f5Styles the background of editor row
--zg-editor-row-input-background_focusvar(--theme-color-lighter)Styles the background of editor row input on focus
--zg-editor-row-input-border1px solid rgba(82, 168, 236, 0.8)Styles the border of editor row
--zg-editor-row-input-border-bottomvar(--zg-editor-row-input-border, 1px solid rgba(82, 168, 236, 0.8))Styles the bottom border of editor row
--zg-editor-row-input-border-leftvar(--zg-editor-row-input-border, 0)Styles the left border of editor row
--zg-editor-row-input-border-rightvar(--zg-editor-row-input-border, 0)Styles the right border of editor row
--zg-editor-row-input-border-topvar(--zg-editor-row-input-border, 0)Styles the top border of editor row
--zg-editor-row-input-box-shadow_focusinset 0 0 5px #cccApplies a box shadow behind editor row input on focus
--zg-editor-row-input-colorvar(--zg-editor-row-input-color, #fff)Sets the font color of editor row
--zg-editor-row-input-padding12px 15pxSets the padding of editor row

CSS Selector

<zg-editor-row> can be styled by common CSS selectors, like so:

zg-editor-row {
  border: 1px solid red;
}