# List

## Displaying and Managing Data

To start with the Avonni List component, you'll first need to connect it to your data and configure how it is displayed.

### **Connect Your Data**

Before you build your list, you must tell the Avonni List component where to get the data it should display. You have several options, depending on the source and nature of your data:

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Manual</strong></td><td>Enter data directly into the component configuration.</td><td></td></tr><tr><td><strong>Variable</strong></td><td>This is useful for data that changes based on user interactions or other component logic.</td><td></td></tr><tr><td><strong>Query</strong></td><td>This is the most common option for displaying Salesforce records.</td><td></td></tr><tr><td><strong>Picklist</strong></td><td>Retrieve data dynamically from a standard or custom picklist field within Salesforce.</td><td><a href="../component-builder/data-sources/picklist">picklist</a></td></tr></tbody></table>

## Map your Data to the List <a href="#map-your-data-to-the-list" id="map-your-data-to-the-list"></a>

When using a dynamic data source for your List, you'll need to configure the **Data Mappings** section to tell the component how to create lists from your data.

Think of it like a translator: Data Mappings ensure the correct information from your Salesforce data.

### **Why are Data Mappings Important?**

Without data mapping, the list wouldn't know which part of your data to use. This could result in the list showing incorrect or irrelevant information.

### **How Do Data Mappings Work?**

In the Data Mappings section, you'll establish the connection between your Salesforce data fields and the corresponding List attributes. By selecting which field maps to which attribute (for example, the "Account Name" field to the "Label" attribute), you ensure each chip accurately displays the correct information from your Salesforce data.

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FJ1f5croHXeeJRKNgj1QV%2F2025-03-31_20-54-38.png?alt=media&#x26;token=3ec71af1-ca91-461f-92b8-9d3f775a1ca4" alt=""><figcaption></figcaption></figure>

## List Variant <a href="#list-variant" id="list-variant"></a>

The **`variant`** property allows you to define the overall style and layout of your Avonni List. Selecting a specific variant will enable you to adapt the list's appearance to suit your content and design preferences.

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FObLnwQgs08zub6dqLyrp%2F2025-03-31_20-55-25.png?alt=media&#x26;token=4d6621fc-d88b-499b-82ef-df9409ecdb91" alt=""><figcaption></figcaption></figure>

### **Available Variant** <a href="#available-variant" id="available-variant"></a>

#### **Base (Default)**

This is the standard list view. Items are displayed in a vertical list format, ideal for detailed information and various content types.

#### **Single-Line**

This variant presents list items horizontally in a single row, allowing you to navigate between items using left and right arrows. It's handy for displaying concise information or maximizing space when vertical real estate is limited.

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2F5qMGy82M9OuDZOCUyf9M%2F2025-03-31_20-56-21.png?alt=media&#x26;token=2032d38e-72bb-4f88-8a61-5db6f46c17e2" alt=""><figcaption></figcaption></figure>

#### **Checklist**

This specialized variant transforms the list into a checklist format. Each item includes a checkbox for selection, making it ideal for interactive task lists or preference selections.

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FTgHaq9ftWij9C8EiP25l%2F2025-03-31_20-57-23.png?alt=media&#x26;token=2ac20db2-80ff-43d2-a0c1-9302a98a7fba" alt=""><figcaption></figcaption></figure>

### **Choosing the Right Variant** <a href="#choosing-the-right-variant" id="choosing-the-right-variant"></a>

* **Base:** This is when you need to present detailed information for each list item, including multiple fields or rich media.
* **Single-Line:** For concise data points or when you want a compact list layout.
* **Checklist**: When you need user input in the form of selections or checkmarks

## Divider Configuration <a href="#divider-configuration" id="divider-configuration"></a>

The Divider attribute is designed to enhance the visual structure of your list by introducing dividers between items.

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FcKUXSkoo0Pn9UyzB7iet%2F2025-03-31_20-57-56.png?alt=media&#x26;token=28932503-cf0e-46a7-a8fe-0f5d1425c7fa" alt=""><figcaption></figcaption></figure>

This attribute allows you to customize how each item in the list is separated from the others.

| Divider    | Description                                                                    | Illustration                                                                                                                                                                                                                                      |
| ---------- | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Top**    | Allows you to place a divider at the top of each item in the list.             | ![](https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2F5mqnbdb4eKmZ9O5Sfn1t%2FListe%20Documentation%20Hub.png?alt=media\&token=d7940cdb-f2cf-458a-862b-a146936d9db0)         |
| **Bottom** | Adds a divider line at the bottom of each list item.                           | ![](https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FKSDYtDWs7AHKLoXxd7tB%2FListe%20Documentation%20Hub%20\(1\).png?alt=media\&token=dec7b963-3e50-4aaf-a004-0ed0d0477a0f) |
| **Around** | Places divider lines both above and below each item in the list.               | ![](https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FYPsBDj23v0dElCUiY1ig%2FListe%20Documentation%20Hub%20\(2\).png?alt=media\&token=0370ad1c-6991-40d9-9161-5f7cb386aed6) |
| **Card**   | Sets each list item within its own card-like container, separated by dividers. | ![](https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2Fs9q4dnwTCWLKDfowf1mB%2FListe%20Documentation%20Hub.avif?alt=media\&token=fdd56d2d-2c49-4f78-846b-a6865fe3c81e)        |

### **Item Clickable** <a href="#item-clickable" id="item-clickable"></a>

If enabled, all items in the list become clickable.

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FyWWCfpR6OBKBM0s9eAy7%2F2025-03-31_20-58-40.png?alt=media&#x26;token=2c411c4e-5f80-4b7e-8cf5-24024607c32e" alt="" width="347"><figcaption></figcaption></figure>

{% hint style="danger" %}

## Important

**Configuring the interaction** correctly is **essential** for clickable items to work effectively. The clickable functionality enhances user interaction with the list of items.
{% endhint %}

## Layout Configuration <a href="#layout-configuration" id="layout-configuration"></a>

### Column Count <a href="#column-count" id="column-count"></a>

The Layout feature empowers you to design lists that adapt seamlessly to different screen sizes. You can effortlessly control how many columns your list items are arranged in, ensuring optimal display on devices ranging from large desktop monitors to compact smartphone screens.

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FQn1pJCFToA7Mfb5PEBnZ%2F2025-03-31_20-59-24.png?alt=media&#x26;token=df41cbfe-18a8-4da5-b3f1-ecdfb7f6fc12" alt=""><figcaption></figcaption></figure>

### **Layout customization** <a href="#layout-customization" id="layout-customization"></a>

* **Column Count:** Choose the number of columns you want your list items to occupy. You have the flexibility to select from one to twelve columns.
* **Responsive Design:** Fine-tune the layout for different screen sizes. For instance, you might prefer a single column for mobile phones to maximize readability while using multiple columns on larger screens to showcase more content simultaneously.

## Actions <a href="#actions" id="actions"></a>

The Avonni List Component can embed actions within your list, transforming it from a display component into an engaging, interactive interface.

**Where to Add Actions**

### **Item Level** <a href="#item-level" id="item-level"></a>

Enhance each list item with clickable elements such as buttons or links. These actions could trigger navigation to a detailed record page, launch a popup for editing, or execute any other custom flow logic.

### **Media Level** <a href="#media-level" id="media-level"></a>

If your list includes images or videos, you can embed actions directly within these media elements. For instance, clicking on a product image could open a product detail page, or tapping a video thumbnail could initiate playback.

## Properties <a href="#properties" id="properties"></a>

### Header <a href="#header" id="header"></a>

The Header section gives you control over the appearance and functionality of your List header.

Header section on a list

<figure><img src="https://docs.avonnicomponents.com/~gitbook/image?url=https%3A%2F%2F27923732-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1FUd4apB9YHgCEMUFbVb%252Fuploads%252FNnbC3WeszZ003Y0pkDOR%252F2023-07-03_20-45-20.png%3Falt%3Dmedia%26token%3D634239f7-8287-44e0-8cac-b5f68a51e7a8&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=63c9b841&#x26;sv=2" alt=""><figcaption></figcaption></figure>

<table><thead><tr><th width="115.875">Attribute</th><th>Description</th></tr></thead><tbody><tr><td><h4><strong>Title</strong></h4></td><td>Define a meaningful title for your List. It introduces the timeline's content and is a key element of the visual hierarchy.</td></tr><tr><td><h4><strong>Caption</strong></h4></td><td>Use the caption field to add a brief description or supplementary information for your List. This can be especially useful for providing context or additional details about the table data.</td></tr><tr><td><h4><strong>Icon</strong></h4></td><td>Add an icon to your header to enhance its visual appeal or to help convey the Liste's purpose or content at a glance.</td></tr><tr><td><h4><strong>Is Joined</strong></h4></td><td>This property gives the header a square, shadowless bottom border when activated. This makes the header blend seamlessly with another component, making the List appear as a continuous, unified element.</td></tr></tbody></table>

### **Buttons**

Add interactive buttons to your header to enable specific actions from the [interaction pane](https://docs.avonnicomponents.com/flow/component-builder/interactions-pane). This provides additional functionality and enhances user engagement with the List.

***

### Check List <a href="#check-list" id="check-list"></a>

When you opt for the "**Checklist**" variant in the Avonni List Component, a new set of customization options becomes available, allowing you to tailor the appearance and behavior of your interactive checklist.

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2Fh47EErapNrEUtl7xQSAm%2F2025-03-31_21-00-35.png?alt=media&#x26;token=f703cec6-9b9e-41f1-90c5-75a020839d65" alt=""><figcaption></figcaption></figure>

**Key Checklist Settings**

* **Strike-Through on Check**: Activate this toggle to apply a strikethrough style to items that have been checked off. This visual cue provides immediate feedback to the user and helps them track their progress.
* **Show Check Counter**: Enable this option to display a real-time counter indicating the number of checked items. This is useful when users need to assess how many items have been selected or completed quickly.

***

#### Avatar Attributes <a href="#avatar-attributes" id="avatar-attributes"></a>

The Avatar Attributes section enables you to customize the appearance and placement of avatars within each item in your Avonni List.

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2F67ip0mK7z2DtR9ZymRWC%2F2025-03-31_21-02-15.png?alt=media&#x26;token=c177eb95-78eb-4937-baa9-4bf2f86a593f" alt=""><figcaption></figcaption></figure>

| Attribute             | Description                                                                                     | Options                                                                        |
| --------------------- | ----------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------ |
| **Variant**           | Modify the shape of the avatar for each item in the list                                        | Circle, Square, Empty                                                          |
| **Icon Size**         | Adjust the size of the avatar icon to match your design needs                                   | Small for minimalism, Large for emphasis                                       |
| **Position**          | Define the placement of the avatar within each list item                                        | Left, Top-Left, Bottom-Left, Right, Top-Right, Bottom-Right, Left-of-the-Title |
| **Presence Position** | Customize the location of the presence icon, indicating user status, in relation to the avatar. | Top-Left, Top-Right, Bottom-Left, Bottom-Right                                 |

***

### Image Attributes <a href="#image-attributes" id="image-attributes"></a>

An image can be added to any item. The image attributes lets you customize the image attributes for your items. You can set the **`position`**, **`size`**, **`height`** and **`Crop`** options.

{% hint style="info" %}
The **Picklist Values Data Source** doesn't support images.
{% endhint %}

### Field Attributes <a href="#field-attributes" id="field-attributes"></a>

The Field Attributes section allows you to define the number of columns each field will occupy within the container, giving you granular control over the layout and appearance of your list content.

![](https://docs.avonnicomponents.com/~gitbook/image?url=https%3A%2F%2F27923732-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1FUd4apB9YHgCEMUFbVb%252Fuploads%252F3OXfITHEkCMIBidyYm03%252FSept%25203%2520Screenshotqq.png%3Falt%3Dmedia%26token%3D4656aa91-b336-4c55-9e2a-9a73b74ec4f8\&width=768\&dpr=4\&quality=100\&sign=c184ccb9\&sv=2)

**How to Use It**

**1 - Define Fields**: Add the fields you want to display on your Avonni List Component - navigate to the 'Fields' attribute. You can find this at the bottom of the Properties Panel.&#x20;

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2Fqqd7WzontQATHUrHhsP0%2F2025-03-31_21-03-13.png?alt=media&#x26;token=e2f2db49-1756-4972-af62-a7db94f49f84" alt=""><figcaption></figcaption></figure>

**2 - Specify Column Span**: Use the Fields Attributes section to specify the number of columns the fields added should span.

### **Variants for Fields** <a href="#variant-for-fields" id="variant-for-fields"></a>

The "variant" property in the Avonni list component modifies the appearance of field information. The following are the available values for the "variant" property, each with a unique style.

* **Standard:** This is the usual way, where the label sits above the field. It's straightforward to read.
* **Label Hidden:** Use this if you want a super clean look. The label is hidden, which is great when you're short on space, or the field's purpose is already apparent.
* **Label Inline:** The label sits next to the field, usually on the left. This is helpful when you have more room side-to-side than up-and-down.
* **Label Stacked:** The label starts atop the field and moves up when you click on it or start typin&#x67;**.** This is a modern style that saves space, especially on mobile devices.

***

## Pagination <a href="#pagination" id="pagination"></a>

The "Pagination Options" area lets you split long lists into smaller parts in the Avonni List Component. You can choose how many items are shown on each page and how the controls look, making it easier to handle extensive lists.

<figure><img src="https://docs.avonnicomponents.com/~gitbook/image?url=https%3A%2F%2F27923732-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1FUd4apB9YHgCEMUFbVb%252Fuploads%252Fh8JOu7Fb1fjPiHVcoVSJ%252F2023-09-03_20-32-37.png%3Falt%3Dmedia%26token%3D3dac8055-d386-42dc-a00c-080506ca3c21&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=d64df269&#x26;sv=2" alt=""><figcaption></figcaption></figure>

### **Key Features**

| Feature                               | Description                                                                        | Options                                                                    |
| ------------------------------------- | ---------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| **Show Pagination**                   | Control the visibility of pagination controls at the bottom of the list.           | Enable or Disable                                                          |
| **Number of Items Per Page**          | Specify how many items to display per page.                                        | Range from 1 to 200, based on data density and user experience needs.      |
| **Pagination Alignment**              | Choose the alignment for the pagination controls.                                  | Left, Center, Right                                                        |
| **Customize Button Icons and Labels** | Personalize icons and labels for pagination buttons (First, Last, Next, Previous). | Adapt to different languages or align with application branding and style. |

## Sort <a href="#sort" id="sort"></a>

To empower users to sort items within your list, activate the "**`Sort`**" option. When enabled, a clear visual indicator (typically an icon) will appear on each item, signaling that the list can be reordered.

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FhKzlaAhX1g9K1ltwUClJ%2F2025-03-31_21-04-45.png?alt=media&#x26;token=59d24ade-9600-4db0-b819-a75f1e5ad376" alt=""><figcaption><p>How to activate the Sortable option</p></figcaption></figure>

Sortable icon in Left Position example

<figure><img src="https://docs.avonnicomponents.com/~gitbook/image?url=https%3A%2F%2F27923732-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252F1FUd4apB9YHgCEMUFbVb%252Fuploads%252FKOPIoVkuKcgOrvtBpILq%252F2022-10-24_14-38-52.png%3Falt%3Dmedia%26token%3D2bc490b4-af0b-4f65-9dac-b1f02e1714ab&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=68cd7faf&#x26;sv=2" alt=""><figcaption></figcaption></figure>

## Adding Filters <a href="#adding-filters" id="adding-filters"></a>

### Add fields as filters <a href="#add-fields-as-filters" id="add-fields-as-filters"></a>

To add fields as filters to your list, locate the "Filter Attributes" section in the properties panel. This section allows you to select the fields you want to use for filtering.

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2F3k9Hy8eczOKKQZpeKO3l%2F2025-03-31_21-03-13.png?alt=media&#x26;token=ff23cbcd-29f0-4138-9d19-fb4ba7d7018e" alt=""><figcaption><p>How to add filters</p></figcaption></figure>

### Filtering Option <a href="#filtering-option" id="filtering-option"></a>

The "**`Filter`**" section allows you to add a filter menu that appears as a popover. When this feature is enabled, all the fields designated as filters will be displayed in this popover, keeping the list uncluttered and focused.

* Open the Component Builder
* Scroll down to the Filter section
* Select how you'd like to display filters.

***

### Filter Type <a href="#filter-type" id="filter-type"></a>

The Avonni List offers three filtering options to streamline your data navigation experience. Each option is designed to accommodate different user preferences and screen sizes.

| Name                                 | Description                                                                                                                                                                                        | Illustration                                                                                                                                                                                                                                       |
| ------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| <h4><strong>Horizontal</strong></h4> | These filters appear directly above the data table, laid out in a horizontal row. This layout is ideal for quickly accessing and applying filters without obstructing the view of the data table.  | ![](https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FBPF2XbXYnpBJrK4TkL7w%2FListe%20Documentation%20Hub%20\(1\).avif?alt=media\&token=71d7a89e-adbc-4842-a620-c515f92ecce6) |
| <h4><strong>Popover</strong></h4>    | This option allows filters to be hidden behind clickable icons or buttons; when clicked, a small, floating interface (a popover) appears, containing the filter options.                           | ![](https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2F4qc4O3G1N5fzIDf7I50v%2FListe%20Documentation%20Hub%20\(2\).avif?alt=media\&token=05823294-44f6-40fe-bb64-aa54b0a8015b) |
| <h4><strong>Side Panel</strong></h4> | <p>Filters in a side panel are located to the left or right of your data table, accessible through a panel that can be expanded or collapsed.</p><h4 id="side-panel-filter-menu-options"><br></h4> | ![](https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FGvPqkCcivljJGyJPxLx3%2FListe%20Documentation%20Hub%20\(3\).avif?alt=media\&token=0bf5c339-45d3-49d9-b197-5d2a1c6b5cda) |

### Side Panel Filter menu options <a href="#side-panel-filter-menu-options" id="side-panel-filter-menu-options"></a>

When configuring your Avonni List component to use a "Panel" filter, you can present filtering options in a convenient side panel. This panel offers additional customization settings, described below:

<figure><img src="https://2532358799-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FODPvvv7Cx9Z9RECLn3oV%2Fuploads%2FqEHUlDTpAps5RUPQAfQR%2F2025-03-31_21-08-01.png?alt=media&#x26;token=4ef353c0-592a-4725-9805-4ffd189158b5" alt="" width="174"><figcaption></figcaption></figure>

**Where the Filter Panel Appears**

* **Position (Left or Right):** The filter panel slides out from the side of the screen. Choose the position that best suits your design.

**How the Filter Panel Starts**

* **Is Closed:** Decide if you want the filter panel hidden or visible when the screen first loads.
  * **True:** The panel starts hidden. This is good if you want to focus on the data table first.
  * **False:** The panel starts open, encouraging users to filter right away.

**Show or Hide the Toggle Button**

* **Hide Toggle Button:** Control whether users see a button to open and close the filter panel.
  * **True:** The button is hidden. Use this if you want the panel to open and close automatically based on other things happening in your flow (like clicking a filter icon).
  * **False:** The button is always visible so users can control the panel.

***

## Search <a href="#search" id="search"></a>

The "Searchable" toggle lets you specify whether the records within a particular column can be searched. When activated, a search bar is made available. Additionally, you can set placeholder text for the search bar and determine its position with available values: left, right, center, and fill.

**Activating Search**: To make a column searchable, toggle on the "Searchable" option in the configuration settings of your Avonni List Component.

**Setting Placeholder Text**: Customize the search bar by adding placeholder text to guide users.

**Positioning the Search Bar**: Use the position attribute to set the location of the search bar. Options include:

* **`left`**: Aligns the search bar to the left.
* **`right`**: Aligns the search bar to the right.
* **`center`**: Centers the search bar.
* **`fill`**: Expands the search bar to fill the available space.

**Best Practices**

* Use descriptive placeholder text to guide users on what they can search for.
* Choose a search bar position that harmonizes with the overall layout of your list component.

***

## Interactions <a href="#interactions" id="interactions"></a>

[Interactions](https://docs.avonnicomponents.com/dynamic-components/component-builder/interactions) define what will happen when users interact with the Avonni List.

Here are the available interactions for the List component:

#### **On Item Click** <a href="#on-item-click" id="on-item-click"></a>

Decide what happens when a user clicks on an item in the list. This could be:

* Going to a page with more details about that item.
* Opening a pop-up to edit the item's information.
* Doing something else you've designed in your flow.

#### **On Action Click** <a href="#on-action-click" id="on-action-click"></a>

If you've added buttons to your list items (like "Edit" or "View Details"), you can choose what happens when those buttons are clicked. This could include:

* Updating the information for that item.
* Opening a new screen.
* Triggering specific actions in your flow.

#### **On Header Action** <a href="#on-header-action" id="on-header-action"></a>

If you have buttons in the list's header, you can customize what happens when those are clicked. This might be:

* Filtering the list to show only certain items.
* Sorting the items differently.
* Other actions that make sense for your list.

#### **On Media Action Click** <a href="#on-media-action-click" id="on-media-action-click"></a>

If your list items have pictures or videos with buttons (like a "Play" button), you can decide what happens when someone clicks those buttons.

#### **On Reorder** <a href="#on-reorder" id="on-reorder"></a>

If you allow users to rearrange items in your list, you can trigger actions whenever they do. For instance, you could automatically update a field in the background to keep track of the new item order.

Ensure you've set an "Order By" field in the list settings to make this work. This will enable the "**Update records order**" option in the interaction settings.

## **Style**

The Avonni List Component offers extensive styling options to help you seamlessly integrate it into your Salesforce.

{% tabs %}
{% tab title="Layout" %}

* **Margin:** Control the spacing around the entire list.
* **Padding:** Adjust the space between list items and their container.
* **Size:** Choose a pre-defined size (Small, Medium, Large) or customize the dimensions.
* **Border:** Add or modify borders around the list container.
  {% endtab %}

{% tab title="Header" %}

* **Header:** Style the header background, text color, and font.
* **Header Border:** Customize the border around the header area.
* **Header Title:** Adjust the appearance of the header title.
* **Header Caption:** Modify the style of the header caption (if applicable).
* **Header Avatar:** Customize the avatar's appearance in the header (if used).
  {% endtab %}

{% tab title="Items" %}

* **Item:** Control the overall appearance of each list item.
* **Item Spacing:** Adjust the vertical spacing between items.
* **Item Vertical Alignment:** Align item content (top, center, bottom).
* **Item Label:** Style the text label within each item.
* **Item Description:** Customize the description text (if used).
* **Item Background:** Change the background color of each item.
* **Item Border:** Modify the borders around individual items.
* **Item Info:** Style additional information displayed in items (if applicable).
* **Item Fields:** Adjust the appearance of multiple fields within an item.
* **Item Fields Label:** Customize the labels for fields in an item.
* **Item Fields Value:** Style the values of fields in an item.
  {% endtab %}

{% tab title="Pagination" %}
**Pagination Buttons:** Change the look of the pagination controls (if enabled).
{% endtab %}

{% tab title="Footer" %}

* **Footer:** Style the footer area of the list (if applicable).
* **Show More Button:** Customize the "Show More" button (if used).
  {% endtab %}

{% tab title="Checklist" %}

* **Checkbox Button:** Modify the appearance of the checkboxes
  {% endtab %}
  {% endtabs %}
