LogoLogo
HomepageYouTube ChannelInstall from the AppExchange
  • Home
  • Dynamic Components
  • Flow Components
  • Experience Components
  • Projects
  • 👋Welcome
  • Getting Started
    • Installation & License Management
    • Quick Start Guide
    • Learning the Basics
    • Reactive Data Components
  • Experience Components
    • 🖼️View All Components
    • Accordion
    • Accordion Section
    • Alert
    • Audio
    • Avatar
    • Avatar Group
    • Banner
    • Bar Code
    • Blockquote
    • Button
    • Button Dialog
    • Button Group
    • Button Menu
    • Calendar
    • Card
    • Chip Container
    • Container
    • Data Table
    • Feed
    • Gallery
    • Icon
    • Illustration
    • Image
    • Kanban
    • Language Selector
    • Layout
    • List
    • Map
    • Media Object
    • Metric
    • Navigation
    • Profile Card
    • Progress Bar
    • Progress Circle
    • Progress Indicator
    • Publisher
    • Record Detail
    • Separator
    • Tabs
    • Text Block
    • Timeline
    • Video
  • Properties Panel
    • Appearance
    • Interactions
      • Show Toast
      • Navigate
      • Open Alert Modal
      • Open Confirm
      • Open Flow Dialog
  • Tutorials
    • General
      • Expressions for Aura Sites
      • Expressions for LWR Sites
    • Components
      • Banner
        • With Illustration and Buttons
        • With Content centered
      • Card
        • Creating a MapCard Showcase
      • Data Table
        • Configuring the Data Table to display current related record information
        • Displaying Salesforce CMS Files in a Data Table
      • Image
        • Utilizing Avonni Image Component for Before-and-After Image Comparisons
      • Layout
        • Configuring the Layout to be responsive
      • Map
        • Set up the map to show record details information
      • Profile Card
        • Set up the Profile Card to display current user information
      • Tabs
    • Interactions
      • Configure the Open Flow Dialog to open a flow by clicking a button
    • Reactive Components
      • Interactive Map
      • Linked Data Tables
      • Guide to Implementing
    • Use Cases
      • Building a record detail page header
      • Creating a MapCard Showcase
      • Creating a Grid Layout
      • Utilizing Avonni Image Component for Before-and-After Image Comparisons
  • HELP
    • How do I contact support?
    • How do I report bugs?
    • Release Notes
    • Security
Powered by GitBook
LogoLogo

Company

  • About Us
  • Pricing

Policies

  • Privacy Policy
  • Terms of Service
On this page
  • Guide to Implementing Reactivity in Avonni Components
  • Step 1: Assigning API Names to Your Data Components
  • Step 2: Configuring Reactive Expressions in Target Components
  • Practical Use Cases:

Was this helpful?

  1. Tutorials
  2. Reactive Components

Guide to Implementing

Last updated 1 year ago

Was this helpful?

Guide to Implementing Reactivity in Avonni Components

Transform your Avonni components into a dynamic and interactive experience with our guide on setting up reactive data components. This tutorial will walk you through the process, ensuring that your components display data and respond to user interactions in real-time.

Reactive-Ready Data Experience Components are: the , , , and the Avonni Text Block.

Step 1: Assigning API Names to Your Data Components

Start by giving each of your data components a unique identifier, known as an API name. This name acts as a reference point, allowing different parts of your page to communicate.

  • For Example:

    • If you're working with a Data Table component, you can name it accountsDatatable.

Step 2: Configuring Reactive Expressions in Target Components

Next, decide where you want the interactive data to appear. This could be within a Text Block, another Data Table, or any component displaying data. Here, you'll use reactive expressions to instruct the component on what data to show and when in the filter menu.

  • The Reactive Expression Format: Use the format {{componentApiName.selectedRecord.componentFieldApiName}} to link your components.

    • componentApiName: This is where you put the API name of your data component (like the accountsDatatable you named above).

    • componentFieldApiName: This refers to the specific field from the record you want to display (for instance, Name or Industry).

  • For Example:

    • To show the 'Name' field of a record selected from your accountsDatatable, use {{accountsDatatable.selectedRecord.Name}}.

    • To display the 'Industry' field from the same selection, use {{accountsDatatable.selectedRecord.Industry}}.

Practical Use Cases:

  1. Interactive Maps for Account Visualization:

    • Suppose you have an interactive map tagged as accountMap. When a user selects a location, you can display the Account Name in a Text Block by using an expression like {{accountMap.selectedRecord.Name}}. This ensures the selected account's name appears dynamically based on user interaction.

  2. Synchronized Data Tables for Accounts and Contacts:

    • Imagine you have one table showing accounts (accountsDatatable) and another showing related contacts (contactsDatatable).

    • You can configure the contactsDatatable to react to selections in the accountsDatatable. For instance, to display the contact name associated with the selected account, use {{accountsTable.selectedRecord.Id}}.

These steps will turn your static components into a rich, responsive experience, making your web applications more intuitive and user-friendly. The power of reactive data lies in its ability to make every interaction on your site feel connected and purposeful.

Happy Building!

Data Table
List
Map
Timeline