GM - Flow Card Grid
(gmpkg:FlowCardGridComponent)
Documentation
GM - Flow Card Grid component is used to select records from a list of responsive cards inside a screen flow. Each card displays a record using a record layout; clicking a card checks it, clicking it again unchecks it. The selection can be limited to a single record and can be made required before the user moves to the next screen.
Use case: Display the contacts of the current account as cards in a screen flow, so the user can pick the contacts to include. See Flow Tutorial.
Specification
The following properties use JSON syntax as part of their configuration: Candidates, Filter, Record Layout.
01. recordId
String
recordId to use. Keep this empty if you want to use the current record. The value replaces $recordId in the Filter property.
02. Related Object Name *
String
The API name of the object to display. Ex. Contact. Don’t forget __c for custom objects.
03. Required
Boolean
Check this option to make a record selection required before moving to the next step.
04. Single Record Selection
Boolean
Check this option to allow the selection of a single record only. Selecting a card unselects the previously selected one.
05. Selected Id(s)
String Collection
The list of selected record Ids. Use it as an output to get the user selection. Set this property only if you want to preselect records.
06. Selected Id
String
The selected record Id. Use it as an output to get the user selection. This property is valid only if Single Record Selection is checked.
07. Candidates
String
The list of records to display. The collection should be a JSON string (array of records with an Id). See Flow Tutorial. Only the list of Id(s) is used to get the records. When a Filter is also defined, both conditions are applied.
08. Filter
String
JSON string to define filter criteria. Don’t forget __c for custom fields. $recordId can be used to reference the current recordId. Ex. {"AccountId":"$recordId"}. See GM - RelatedList Grid
09. Sort
String
The field list to sort the cards. Don’t forget __c for custom fields.
10. Order
String
Ascending or descending order for sorting. For ascending enter the value asc. For descending enter the value desc
11. Row Limit
Integer
The maximum number of records to fetch. The default value is 100. Values above 100 are capped at 100.
12. Grid Width
Integer
Set the grid width in %. The default value is 100.
13. Grid Height
Integer
Set the grid height in px. Set this property if you want to control the height. The user has to scroll vertically to see more cards.
14. Large Layout
Integer
Number of cards per row on large devices. Use a divisor of 12: 1, 2, 3, 4, 6 or 12.
15. Medium Layout
Integer
Number of cards per row on medium devices. Use a divisor of 12: 1, 2, 3, 4, 6 or 12.
16. Small Layout
Integer
Number of cards per row on small devices. Use a divisor of 12: 1, 2, 3, 4, 6 or 12.
17. Title Field
String
The field displayed as the card title. The card header is displayed only when this property is set.
18. Record Layout
String
JSON record layout used to render each card body. The syntax is the same as the Record Layout property of GM - Record Layout (LWC).
19. Card Icon
String
The icon displayed in the card header. All lightning icons are supported. You can get the icon name from https://lightningdesignsystem.com/icons/
20. Show Card Border
Boolean
Check this option if you wish to add a border to each card.
API Reference
Last updated
Was this helpful?