grid-item
The grid-item component serves as the child component whenever any grid component has been configured, as discussed in the grid section. The component determines how the grid items are displayed, allowing you to customize the UI elements in the grid.
Configuration options
Some properties are common to all components, see Common component properties for a list and their configuration options.
icon
The icon will be displayed on the of the jig. Start typing the name of the icon to invoke the available list in IntelliSense. See Jigx icons for information on working with icons. The icon property applies to component.jig-widget without a widgetId. See the considerations below for the rules governing icon behavior.
title
By default, the jig's title is displayed. You can override it by adding the title property to the grid-item, either with a custom title or with '' (a blank space) to remove the title entirely.
Considerations
When using the
grid-itemwith acomponent.jig-widget, note the following:A
widgetIdis required if the referenced jig includes a widget configuration. This value should match theWidget Namespecified in the referenced jig.If no widget configuration exists, the widget’s icon is inherited from the jig’s
iconvalue. If noiconis specified there either, a default icon is used. You can override the icon by specifying one in thecomponent.jig-widgetof thegrid-item.
For a
1x1widget, or acomponent.widgetwith no widgetId, the following rules apply:If no
iconis specified, a default icon is displayed.If an
iconis configured in the linked jig, that icon is used.If an
iconis specified in thecomponent.widgetin thegrid-item, it overrides all other icon settings.
A jig with inputs in it's
titlewill display without a title (blank) as the jig would not have received those inputs.
Examples and code snippets
Grid-item with image and widget

In this example, three grid-items are configured, each with a different size and type.
Grid-item using an image component with a size specified of 4x2.
Grid-item using a list widget with a size specified as 2x2. The grid-item automatically shows the list.
Grid-item using a chart widget with a size of 2x2.
Grid-item options
This example shows the various configurations available to customize a grid-item, making it a versatile widget component. Options include:
Default
icon.Customized
icons.Overridden or hidden titles using the
titleproperty.onPressactions for interactive behavior.
Examples: See the full code example in GitHub.

Last updated
Was this helpful?