Repeater
The Avonni Repeater creates dynamic, repeating sections from your data source. It works like a loop — you design a template once using Avonni components, and the Repeater generates that template for each record returned by your query or variable.
Overview
To start with the Avonni Repeater, connect it to your data and design the template that will be repeated for each record. The sections below follow the configuration panel from top to bottom.
Key capabilities
Complete layout control: Unlike standard list views with fixed columns, you define exactly how each item displays — combine Text, Metrics, Avatars, Buttons, Progress Bars, and more in any arrangement
Data binding: Access the current record data with
{!Repeater1.CurrentRecord.FieldName}or related objects via{!Repeater1.CurrentRecord.Account.Name}Built-in controls: Includes pagination, search, filtering, and responsive layouts out of the box
Common applications
Card-based record displays, product galleries, searchable directories, dashboard sections, aggregated data views, approval queues, and resource libraries.
Restriction: Data Display components cannot be added to the Repeater to improve performance: Timeline, Carousel, Chat, Data LWC Container, Data Table, Kanban, List, Map, Pivot Table, Relationship Graph, Calendar, Tree, Tree Grid, Vertical Navigation and the Repeater itself. A Repeater can therefore never be nested in another.
Projects
See how Repeater fits into a complete Salesforce workflow. Each project includes steps to build it with AI or manually.
Track every parcel on one board, refreshed by platform events as the carrier reports.
Quick Start: Display High-Value Opportunities in a Visual Grid
Scenario: Your sales team needs to quickly identify which prospects are worth pursuing. Instead of scrolling through a plain list view, you'll build a visual dashboard that displays high-value opportunities ($10K+) in the Prospecting stage as scannable cards.
What you'll build: A 3-column card grid where each card shows an opportunity's icon, name, and deal value—automatically filtered to Prospecting stage deals over $10K.

Build time: 5 minutes.
Build Your Opportunity Card
Now for the fun part—let's create a polished card for each opportunity:
Drag a Media Object component into the Repeater's slot

In the Media Object's left slot, add an Avatar component:
Set Fallback Icon Name to
standard:opportunitySet Initials to
{!Repeater1.CurrentRecord.Name}(this will show the first letters of the opportunity name) and set it to "Initial Auto Formatted"

In the Media Object's main content area, add a Text component:
Set the value to
{!Repeater1.CurrentRecord.Name}Make it bold using the formatting options

Below that text, add a Metric component:
Set Label to "Deal Value"
Set Value to
{!Repeater1.CurrentRecord.Amount}Enable currency formatting
Add an icon like
utility:moneybagfor visual appeal

Customize the Repeater layout
Make your dashboard visually organized and professional:
Configure the grid layout In the Repeater's Layout Section:
Set Number of Columns to 3 (arranges opportunities in a 3-column grid)
Set Divider to Card style (adds visual separation between each opportunity card)
Add a dashboard title In the Repeater's Header Section:
Set Title to something descriptive like "High-Value Prospects" or "Priority Pipeline"
(Optional) Add a Caption like "Prospecting stage • $10K+"
This creates a polished, scannable dashboard instead of a plain stacked list

Save and Add it to a Lightning Page
Now that your Dynamic Component is built and saved, you need to place it on a Lightning page so users can actually see it. Lightning App Builder uses a generic AX - Dynamic Component wrapper that you'll drag onto the page, then configure to display your specific component
Click Save in the Dynamic Component builder, then Activate your component
Open Lightning App Builder and navigate to the page where you want the dashboard (Home page, Opportunities page, etc.)
From the component list on the left, drag the AX - Dynamic Component onto your page
In the Properties Panel on the right, use the dropdown to select your newly created Dynamic Component from the list of available components
Save and Activate the page
Your high-value prospecting dashboard is now live! Sales reps can now quickly scan which deals to prioritize without scrolling through list views.
That's it! You've just created a professional opportunity dashboard showing opportunity names, avatars, and deal values in an attractive card layout—one card for each record returned by your query. Once you save your Dynamic Component, you can place it on any Lightning page (Account pages, Home page, custom app pages) and it will automatically display your opportunities.
From here, you can enhance your cards further by adding buttons (to navigate to records), additional metrics (close date, probability), or status badges (stage indicators with colors).
How the Repeater Works: Core Concepts
Before diving into detailed configuration, understanding these three core concepts will help you configure the Repeater efficiently.
Configuration Workflow
Follow this workflow to configure any Repeater component:
Step 1: Add and Name the Component Drag the Repeater onto your Dynamic Component canvas. In the Properties Panel, set a clear API Name (e.g., "ContactRepeater", "OppCards") since you'll reference this in bindings.
Key principle: The Repeater is a multiplication tool. Whatever you build in the slot gets multiplied by the number of records in your data source. Design one item well, and the Repeater handles the rest.
Configuration
To configure the Repeater, select it on the canvas. The Edit Repeater panel opens on the right. The sections below mirror the Properties tab.
Data Source
Before you build your repeating layout, tell the Repeater where to get the data. You have two options:
Query
Fetches records from a Salesforce object using a query you configure.
Variable
Uses a collection variable already defined in your component.
Data Mappings
When using a dynamic data source, configure the Data Mappings section to control how the Repeater filters and searches its data.
Filters — Select object fields to expose as user-facing filter controls. Requires the data source to be Query or Variable.
Search Fields — Select which SObject field API names the search bar scans across. Requires Show Search to be enabled and data source to be Query or Variable.
Content
Items Clickable
Enable Items Clickable to make every repeated item respond to clicks. Use this together with an On Item Click interaction to navigate, open a panel, or trigger a flow when users click a card or row.
Highlight On Click
When Highlight On Click is enabled, the last clicked item is visually highlighted. If an interaction opens a side panel on item click, the item is highlighted automatically regardless of this setting.
Layout
The Layout section controls how repeated items are arranged within the component. All column settings use container-based breakpoints, so the layout adapts to the width of the Repeater's container rather than the browser window.
Alignment — Choose Vertical (stacked, default) or Horizontal (grid).
Number of Columns — The base column count used for the smallest container (below 480 px) and as the fallback for all sizes. Options: 1 (default), 2, 3, 4, 6, 12.
Number of Columns Small Container — Columns when the container is 480 px or wider.
Number of Columns Medium Container — Columns when the container is 768 px or wider.
Number of Columns Large Container — Columns when the container is 1024 px or wider.
Divider — Visual separator between items. Options: None (default), Top, Bottom, Around, Card.
Equal Heights — When enabled, all items in a row share the same height for a uniform grid appearance.
Header
The Header section lets you add a title, subtitle, avatar, help text, and action buttons above the repeated items.
Title — Main header text displayed at the top of the component.
Caption — Secondary text displayed above the title for additional context.
Avatar — Display an image or icon in the header. Set an Image (URL), a Fallback Icon Name (SLDS icon), or Initials. Advanced options include Size and Variant (Circle or Square, default Square).
Help Text — A hoverable icon in the header that displays guidance content.
Is Joined — When enabled, the header's bottom border becomes square and shadowless so it sits flush against the component below.
Show Number of Items — Displays the total item count next to the header title.
Actions — Add interactive buttons to the header. Configure labels, names, icons, and disabled/hidden states. Use Visible Actions Buttons to set how many actions appear as inline buttons before the rest overflow into a dropdown menu.
Hide Actions — Hides all header action buttons.
Disable Actions — Disables all header action buttons.
Pagination
Show Pagination — Enable to display pagination controls at the bottom of the Repeater. When disabled, items load progressively (infinite scroll or lazy loading).
Number of Items per Page — Number of records per page when pagination is visible, or the batch size for lazy loading. Range: 1–500, default 100.
Filter
The Filter section controls how the filter menu is presented to end-users. Filter fields are enabled in the Data Mappings section.
Type — Sets the filter display style. Options: Horizontal (filters displayed inline above the content, default), Popover (filters in a floating popover), Panel (filters in a collapsible side panel).
Use Record Picklist Values — When enabled for a picklist field filter, derives filter options from the values actually present in the records rather than the full defined picklist.
Use Cascading Filter Values — When enabled, applying one filter dynamically narrows the available options in other filters to only reflect matching records. Overrides Use Record Picklist Values.
Filter Operators
Each filter in the menu carries a mode selector — tooltipped Filter mode — that sets how its value is matched. There is nothing to configure in the builder: the operators on offer follow the field's type, and users pick one as they filter.
Text, picklist, multi-select picklist and lookup filters — Equals (default), Not Equals, Empty, Not Empty.
Number, currency, percent, date, date/time and time filters — Between (default), Not Between, Equals, Not Equals, Less Than, Less or Equal, Greater Than, Greater or Equal, Empty, Not Empty.
Checkbox filters — no Filter mode selector; they always match on equality.
Selecting Empty or Not Empty hides the value input, since neither operator takes a value.
Search
Show Search — Enable to display a search bar above the repeated items.
Placeholder — Placeholder text shown inside the search bar (default: "Search"). Requires Show Search to be enabled.
Position — Position of the search bar. Options: Left (default), Right, Center, Fill, Panel. Requires Show Search to be enabled.
Side Panel
The Side Panel settings apply when the Filter Type is set to Panel or the Search Position is set to Panel. They control the appearance and default state of the collapsible sidebar.
Position — Which side the panel slides out from. Options: Left (default), Right.
Closed by Default — When enabled, the panel starts collapsed. When disabled, the panel starts open.
Hide Toggle Button — Hides the button that opens and closes the panel. Use this when you want to control the panel programmatically via interactions.
Reset Button Label — Label for the reset/clear button inside the panel.
When to use Side Panel
You have multiple filter options and want to keep your main content area clean
Users need access to filters but don't need them visible at all times
You're building a searchable directory or catalog where filters are secondary to browsing
How it works
In the Filter section, set Type to Panel (or set Search Position to Panel)
Configure the Side Panel Position (left or right)
Set Closed by Default to On if you want the panel collapsed by default
Users click the toggle button to open/close the filter panel
Tip: Use the panel position on the opposite side of your main actions. For example, if you have action buttons on the right side of cards, place the filter panel on the left to avoid visual crowding
No Results Message
The No Results Message section controls what the Repeater shows when its data source returns no records, so users get helpful feedback instead of an empty area.
No Results Message — The message to display when no records are returned.
Hide No Results Image — If enabled, the no results illustration is hidden.
Hide No Results Message — If enabled, the no results message is hidden.
Set Component Visibility
All components support conditional visibility — see Component Visibility.
Use Cases
Example 1: Employee Directory
This example displays a list of Contacts tied to the current Account page's record ID, using the Avonni Repeatable Component to show a Media Object, Avatar, and Button for each contact.

Adjust repeatable layout settings
To control how the employee directory appears, the Repeatable Layout Settings are configured to provide a clean, structured presentation. The layout uses vertical alignment, meaning each contact's information is stacked vertically within its section. The display is arranged in a 3-column grid, allowing multiple contacts to appear side by side across the page. Additionally, a Card-style divider is applied between items to visually separate and organize content for improved readability.

Add the Avonni Button to the right slot of the media object
Inside the Media Object, place an Avonni Button in the right slot to act as a call-to-action for each contact. Label the button "View", and configure its click interaction to navigate users to the selected contact's record page. To do this, set the interaction to: Navigate → Record Page → Contact Object → View
Interactions
Interactions define what happens when users interact with the Repeater. Configure them from the Interactions tab of the Edit Repeater panel.
Item Click
Fires when a user clicks a repeated item. Requires Items Clickable to be enabled. Use this to navigate to a record detail page, open a side panel, or trigger any flow logic tied to the selected record. The clickedItemSObject output is set to the record associated with the clicked item.
Header Action Click
Fires when a user clicks one of the header action buttons. Set Target Name to the header action you want to react to.
Output Variables
The Repeater exposes these output variables you can reference elsewhere on the page after the user interacts with it.
Item Click
When a user clicks a repeated item, this variable updates with the selected record's data. Requires Items Clickable to be enabled.
Clicked Item sObject
Record (SObject)
The full Salesforce record associated with the item the user clicked.
Example: When a user clicks a contact card in an employee directory Repeater, use Clicked Item sObject to populate a record-detail panel beside the list.
Header Actions
Clicked Header Action Name
Text (String)
The name of the header action button the user clicked. Use it to branch logic when multiple header actions are configured.
Others
Number of Items
Number
The total count of records currently loaded in the Repeater.
Styling
Configure the Repeater's appearance from the Style tab of the Edit Repeater panel.
Controls the outer spacing around the component.
Top / Right / Bottom / Left: Adjust the space on each side.
Controls the inner spacing between the component's content and its border.
Top / Right / Bottom / Left: Adjust the inner spacing on each side.
Controls the component's dimensions.
Width / Height: Set fixed dimensions.
Min Width / Max Width / Min Height / Max Height: Constrain the size within bounds.
Overflow: Control how content that exceeds the bounds is handled.
Customizes the border surrounding the component.
Color / Size / Style / Radius: Set the border color, thickness, style, and corner rounding.
Styles the header background and spacing.
Background Color: Set the header background color.
Padding Top / Right / Bottom / Left: Adjust the inner spacing of the header.
Margin Bottom: Set the space below the header.
Styles each repeated item's spacing, background, and border.
Spacing: Block Between / Inline Between to set the vertical and horizontal spacing between items.
Background: Color / Color Hover / Color Highlight.
Border: Color / Size / Style / Radius.
Styles the side panel that holds the filters and search.
Filters Panel: Background Color / Border Color / Border Size / Border Style / Border Radius.
Filters Panel Labels: Background / Background Active / Background Hover; Collapse Icon Color; Color / Color Active / Color Hover; Font Size / Font Weight.
Filters Panel Options: Color; Checkbox Border Color; Load More Button Text Color / Text Color Active / Text Color Hover.
Filters Panel Reset Button: Background Color / Text Color / Border Color / Border Size / Border Radius; Background Color Hover / Border Color Hover; Background Color Active / Border Color Active.
Key Considerations
Data Access: In slots, use {!API_Name.CurrentRecord.Field} for current item. It resolves only in the properties of components inside the slot, never in a query filter.
Performance: Limit queries for large datasets; use pagination to avoid load issues.
Responsive Design: Test column settings across device sizes.
Actions and Interactions: Header actions can trigger flows, and side panels are available for per-item edits.
No Results Handling: Customize empty-state messages to guide users.
Troubleshooting Common Issues
No items are repeating / The Repeater appears empty — Check your Data Source query in the Properties Panel and click "Preview Results" to verify records match your criteria. If using a Variable, confirm it is populated and in scope. If filtering by the current record ID, ensure you are on a record page with a valid record ID and that the Target Page Name is set correctly. Also confirm the current user has read access to the object and fields — test with a System Administrator profile to rule out permission issues.
Binding attributes show {!Repeater1.CurrentRecord.FieldName} as literal text: The API Name in your binding must exactly match the Repeater's API Name (case-sensitive). Verify the field API name is correct, including
__cfor custom fields and dot notation for relationships (e.g.Account.Name). Double-check your binding syntax{!ComponentAPIName.CurrentRecord.FieldAPIName}for extra spaces or typos, and confirm the target component property supports dynamic binding. Also confirm the component sits inside the Repeater's slot and that the binding isn't in a query filter, whereCurrentRecordnever resolves.Fields bound to Clicked Item sObject are blank on the first click: the Clicked Item sObject output returns the record from the data the Repeater has already loaded. It does not run a new query when an item is clicked. A field used only outside the Repeater (for example in a record detail panel) is not automatically included in the Repeater's query, so it comes back empty. Add each of those field API names to the Additional fields advanced property in the query configuration. The fields are then returned with every query and the panel fills on the first click.
Last updated
Was this helpful?




