Skip to main content

Grid

Create a responsive Grid, size its tracks, nest controls, and configure gaps, alignment and title styles.

Use CSS grid to position content within a responsive layout. A Grid is a container used to visually group a set of related contents on your forms and pages.

The grid layout in Yeeflow brings CSS grid to life on a completely visual canvas. This gives you more direct control over your layout and design. With grid, you can reposition and resize items anywhere within the grid to produce powerful, responsive layouts — faster.

You can use grid to create various layouts. For example, you can use it to create a table that you can easily convert into cards on smaller devices.

The Grid allows you to arrange block controls in columns and rows. You can add any number of controls to it, even add one grid inside to another grid.


Create a grid

To create a grid, select the grid control from the Add panel.


Title display and collapse

Set the title of this grid from Content / Basic panel / Title. Type the title in the textbox. You can control if display or hide the title section by turn ON/OFF from Appearance and Display Title option settings.

Turn Collapse option ON to allow users to collapse and expand the grid content area.

Original Grid settings with Display Title and Collapse both on.

Display Title and Collapse are both on in this earlier capture. In the full example, the Title field supplies the “Getting Started” heading, which includes the collapse control.


Add columns and rows

To add columns and rows, go to the Appearance section and click the + add button at the top-right of the columns or rows settings area.

Original Appearance settings with three columns, one row, Direction Default and Dense off.

In this Appearance example, the three columns use 2fr, 1fr and 1fr, and the one row uses auto. Select the plus button to add a track. Direction is set to Default, and Dense is off.


Duplicate and delete rows and columns

To duplicate or delete a column or row, click the duplicate or delete button at the end of each column or row.


Reorder rows and columns

To reorder rows or columns in the Settings panel, hover over the row or column you’d like to move, then drag the handle that appears.


Adjust columns and row sizing

To adjust the size of grid columns and rows, enter a custom size in the track heading on the canvas or expand the track in the Grid’s Appearance section.

The original Default sizing example sets the track to 2fr with Auto-fit off. Its Auto-fit message says this option cannot be enabled when there are auto, flexible (fr), minmax(auto, fr), minmax(auto, auto), or other auto-fit columns or rows.

The FR unit

The grid layout introduces an extra length unit to help us define a grid: the FR unit. The FR unit represents a fraction of the available space in the grid container. You use it to define the length of rows and columns just like a percentage or pixel unit. But, unlike fixed percentages or pixel units, the FR unit automatically calculates cell space while adjusting for gaps.

Columns with a sizing value of 1FR will stretch or shrink to fill the available space in a grid container. If you add or delete columns, all columns with 1FR unit will adjust accordingly.

Min/Max settings

Setting min/max values ensures your rows and columns don’t shrink beyond a set minimum value or expand beyond a set maximum value. For example, a row has a default height of auto and will expand or shrink to fit the content inside.

If you want your rows to have a minimum height of let’s say 200px, you can set the min value to 200px and the max value to Auto. This way, the row will grow based on the content and never shrink beyond 200px. You can do the same with columns.

To enter a min/max value for a column or row, expand the track in Appearance, select Min/Max under Sizing, and enter the Min and Max values.

Original track settings with Sizing Min/Max, Min 200px, Max 1fr and Auto-fit off.

This separate original example uses Sizing Min/Max, Min 200px, Max 1fr and Auto-fit off. Its maximum differs from the 200px/auto example described above.

Place content in a grid

You can add other controls inside a grid: a Textbox field control, an Image, a Gallery control, and even another grid. Anything you add to the grid becomes a child element of that grid. By default, every new grid child will populate an individual grid cell — filling in the next available cell from left to right. If there are no more available cells in a row, a new row will generate to house new grid children.


Change the direction in which grid content flows

You can change the direction of the grid children in the Grid’s Appearance section. The Direction menu offers Default, Row and Column. Select Row to place children from left to right, or Column to place them from top to bottom.


Nest multiple elements in a grid cell

You can add multiple elements to a single grid cell by nesting elements within the grid child. To do this, you’ll first want to add a container, to the grid as the direct grid child.

Once you’ve added the Container as the grid child, you can add other elements to that Container by dragging the elements into the grid cell.

Original Navigator hierarchy with a Container inside Grid and Title, Button and Text Editor inside the Container.

The original Navigator shows Grid → Container → Title, Button and Text Editor. The Container groups those three controls within a grid cell.


Manually position content in a grid

To change the position setting of an existing control inside a grid manually, select the control, and go to the Advanced Tab to change the settings under grid child section.

In the original manual-positioning example, a selected Container holding a title, button and text occupies the wide left area beside the other grid content. Use the child’s Grid Child settings to choose its position and track coordinates.


Dynamic Display Rules

When you set a dynamic display rule for this grid, It behaves differently based on specific conditions and rules. There are Two actions (Hide/Show) for grid control.


Style the layout of Grid

Adjust gaps between columns and rows

Gaps allow you to specify the space between grid items without adding margin or padding. To adjust the gap size between columns and rows, set the value of Columns Gap and Rows Gap.

Original Columns Gap set to 40px and Rows Gap set to 10em.

Original gap example: Columns Gap is 40px and Rows Gap is 10em. The full example marks the spaces between columns in pink and between rows in green.

Align content in a grid

To update the alignment for all children within a grid, select the grid and change the alignment settings in the Style panel.

Original Grid alignment settings: Align Items End, Justify Items Start, Align Content Default, Justify Content Default.

Original alignment example: Align Items is End, Justify Items is Start, Align Content is Default, and Justify Content is Default. The full layout illustrates content aligned toward the bottom of its cells.

Content Padding: Set the padding of the content in each cell.

Background type: Select the Grid control's background color. You may use a solid or gradient color.

Border Type: Select the type of border, choosing from none, solid, double, dotted, dashed, or grooved.

Radius: Set the border radius to control corner roundness.


Style the Title of Grid

  1. Typography: Set the typography options for the title's text.

  2. Color: Choose the color of the title's text.

  3. Icon Color: Choose the color of the Collapse's icon.

  4. Icon Size: Set the size of the Collapse's icon.

  5. Padding: Set the Padding of the Title area.

  6. Border Type: Select the type of border, choosing from none, solid, double, dotted, dashed, or grooved.

  7. Radius: Set the border radius to control corner roundness.

  8. Shadow: Adjust box shadow options


Advanced Settings

Set the Advanced options that are applicable to this control.

Preview the Grid at the desktop and mobile widths you support. Check the column and row sizes, content direction, gaps, alignment and collapse behavior with representative content. If a child needs a specific position or span, verify its Grid Child settings as well.

Did this answer your question?