LyteNyte Grid logo for light mode. Links back to the documentation home page.
Github repository for this project. 1771 Technologies home page

Layout

LyteNyte Grid is a headless data grid. The grid positions cells and headers based on a layout description. This section describes the types that make up the grid layout description.

For more details on working with LyteNyte Grid as a headless grid, see the Headless Component Parts guide.

Row Layouts

Two types are necessary to describe the layout of a row in LyteNyte Grid, since a row may be either a full width row or a row with individual cells. The row layout is described by a type called LayoutRow, which is a union of the cell layout and full width layout types:

type LayoutRow = LayoutRowWithCells | LayoutFullWidthRow;

LayoutFullWidthRow

Prop

LayoutRowWithCells

Prop

LayoutCell

Prop

Header Layouts

Three types are necessary to describe the header layout. These types describe a header group cell, a header cell, or a floating header cell. The LayoutHeader type is a union of these three types.

~ts type LayoutHeader = LayoutHeaderCell | LayoutHeaderFloating | LayoutHeaderGroup; ~

LayoutHeaderCell

Prop

LayoutHeaderFloating

Prop

LayoutHeaderGroup

Prop