LogoLogo
HomepageYouTube ChannelInstall from the AppExchange
  • Home
  • Dynamic Components
  • Flow Components
  • Experience Components
  • Projects
  • 👋Welcome
  • Getting Started
    • Product Tour
    • Quickstart Tutorial
    • Understanding The Essentials
      • Component Builder
      • Component Visibility
      • Target Page Object
      • Using Variables and Component Data
      • Publishing your Dynamic Components
      • Dynamic vs. Flow Components
    • Avonni Components App
      • Accessing the App
      • Folders
      • Templates
      • Version management
    • AppExchange Listing Page
    • Installation & Licenses Management
  • Tutorials
    • Projects
    • Components
      • Calendar
        • How to Create Events Quickly by Dragging
        • How to Add an Edit Action to Calendar Events
        • How to Add a New Event Button to the Calendar Header
        • How to Customize the Right-Click Menu
        • How to Reschedule Events with Drag and Drop
      • Columns
        • Creating a Responsive 3-Column Layout
      • Data Table
        • How to customize Data Table style
        • How to make a field editable
        • How to add clickable buttons
        • How to color-code badges
        • How to export data
        • How to configure search
        • How to set columns visibility
      • Kanban
        • Saving Changes on Drag-and-Drop
      • List
      • Metric
      • Record Detail
        • Saving Changes
    • Interactions
      • How to create an interaction to navigate to an object page
      • How to create an interaction to navigate to a record page
      • How to Pass Multiple Selected Records from a Dynamic Component to a Screen Flow
    • Reactive Components
      • Reactive Map and Data Table
      • Master-Detail Relationship with Data Tables
      • Vertical Tabs with Reactive Data Table
    • Style
      • How do you add space or a break between sections or fields?
    • Tips and Tricks
      • Using the Dynamic Component component
  • Component Builder
    • Overview
    • Configuring Components
      • Properties
      • Fields
      • Style
    • Data & Interactions
      • Data Sources
        • Manual
        • Picklist
      • Resources
        • Constant
        • Formula
        • Nested Queries
        • Query
        • Variable
      • Interactions
        • CRUD from Record Variable
        • Download
        • Execute Flow
        • Navigate
        • On Load
        • Open Alert Modal
        • Open Confirm
        • Open Dynamic Component Dialog
        • Open Dynamic Component Panel
        • Open Flow Panel
        • Open Flow Dialog
        • Show Toast
    • Advanced Topics
      • Undo / Redo
      • Copy and Paste
      • Keyboard Shortcut
  • Components
    • Explore All Components
    • Accordion
    • Alert
    • Audio Player
    • Avatar
    • Avatar Group
    • Badge
    • Barcode
    • Blockquote
    • Button
    • Button Group
    • Button Icon
    • Button Menu
    • Button Stateful
    • Calendar
    • Camera 🆕
    • Card
    • Carousel
    • Chart
    • Checkbox
    • Checkbox Button
    • Chip Container
    • Color Picker
    • Columns
    • Combobox
    • Container
    • Counter
    • Data LWC Container
    • Data Table
    • Date Picker
    • Date
    • Date Range
    • Dual Listbox
    • Dynamic Component
    • Formatted Address
    • Formatted Name
    • Formatted Value
    • Header
    • Icon
    • Icon Picker
    • Illustration
    • Image
    • Input Color
    • Input Date
    • Input Pen (Signature)
    • Input Text
    • Kanban
    • List
    • LWC Container
    • Map
    • Media Object
    • Metric
    • PDF Viewer
    • Pivot Table
    • Progress Bar
    • Progress Circle
    • Progress Indicator
    • Rating
    • Record Detail
    • Relationship Graph
    • Scope Notification
    • Section
    • Separator
    • Slider
    • Status
    • Tabbed Container
    • Tabs
    • Text
    • Text Area
    • Timeline
    • Toggle
    • Tree
    • Vertical Visual Picker
    • Video Player
    • Visual Picker
    • Visual Picker Link
  • Help
    • Contact Support
    • Security
    • Performance Guide
    • Deployment Process
    • Release Notes
    • Report Bugs
Powered by GitBook
LogoLogo

Company

  • About Us
  • Pricing

Policies

  • Privacy Policy
  • Terms of Service
On this page
  • Overview
  • Configuring the Icon Picker
  • Basic Properties
  • Appearance Properties
  • Behavior Properties
  • Filtering Options (Advanced)
  • Example: Dynamically Setting a Header's Icon
  • Important Considerations

Was this helpful?

  1. Components

Icon Picker

The Icon Picker component allows users to select an icon from a predefined list.

Overview

The Icon Picker provides a user-friendly interface for selecting icons. Instead of typing in an icon name (like utility:add), users can visually browse and choose from a categorized list. The component then stores the selected icon name as its value, which you can use in other components (like a Button's iconName property) or Formulas.


Configuring the Icon Picker

Select the Icon Picker component on the canvas to access its properties in the Properties Panel.

Basic Properties

These properties control the fundamental data and labeling of the Icon Picker.

  • API Name: (Text) A unique identifier for this component instance (e.g., StatusIconPicker).

  • Label: (Text) The text label displayed above or next to the Icon Picker input field. Example: "Select an Icon:", "Choose Status Icon:".

  • Value: (Text - Crucially Important) This property holds the name of the currently selected icon (e.g., utility:add, standard:account).

    • Data Binding: You should bind this property to a Text Variable resource. This variable will store the selected icon name. You can then use this variable to set the Icon Name property of other components (like Buttons, Metrics, etc.).

  • Field Level Help: (Text, Optional) Help text displayed next to the label.

  • Placeholder: (Text) Placeholder text displayed in the Icon Picker's input field before the user makes a selection. Example: "Search for an icon..."

Appearance Properties

These properties control the visual presentation of the Icon Picker itself (not the icons within it).

  • Variant: (Text - Select from options) Controls the visual style and positioning of the label:

    • standard: Label above the input field.

    • label-inline: Label to the left of the input field.

    • label-stacked: Label above the input field (may have different styling than standard).

    • label-hidden: Hide the label.

  • Menu Label: (Text) Customize the label of the menu displayed.

  • Menu Icon Size: (Text - Select from options) Controls the size of the icons within the dropdown menu: x-small, small, medium, large, x-large.

  • Menu Variant: (Text - Select from options) Control the visual style of the menu.

Behavior Properties

These properties control how the user interacts with the Icon Picker.

  • Hide Footer: (Boolean - Checkbox) If enabled, hides the "Cancel" and "Done" buttons in the dropdown menu. If hidden, selection happens immediately when an icon is clicked.

  • Hide Input Text: (Boolean - Checkbox) If enabled, the text input field (where the user can type to search) is hidden. The Icon Picker will appear as a button that opens the icon selection menu. Use this if you want to force users to browse rather than search.

  • Disabled: (Boolean - Checkbox) Completely disables the Icon Picker.

  • Read Only: (Boolean - Checkbox) Allows the user to see the selected icon, but not change it.

  • Required: (Boolean - Checkbox) Makes icon selection mandatory.

  • Visible: (Boolean) Controls whether the Icon Picker component is visible on the page.

Filtering Options (Advanced)

  • Hidden Categories: (Text - Comma Separated) Hide specific categories


Example: Dynamically Setting a Header's Icon

This example shows how to use an Icon Picker to let the user dynamically change the icon displayed on an Avonni Header component.

  1. Add the Icon picker component

    1. API Name: MyIconPicker

    2. Label: "Select Button Icon:"

    3. Value: Bind this to {!selectedIcon}.

  2. Add the Header component

    1. Map the Icon name value to the value coming from the Icon Picker element > value.


Important Considerations

  • Data Binding: The Value property is key. Bind it to a Variable to store the selected icon name.

  • Icon Libraries: Be aware of which icon libraries are available (SLDS, Avonni custom icons). The Icon Picker will only show icons included with the Avonni package.

  • Accessibility: Provide a descriptive Label and consider using Field Level Help to guide users.

The Icon Picker is a user-friendly way to choose icons. The component supports SLDS icons.

Last updated 1 month ago

Was this helpful?

Dynamic Updates: Use the Value property with and other interactions to create dynamic behavior based on the selected icon.

Formulas
Final Result
Data Binding process