Apex Aide apexaide

Build Custom Property Editors and Types for Experience Builder

By Henry Chen· Salesforce Developers Blog· ·Intermediate ·Developer ·7 min read
Summary

Creating custom property editors and types in Experience Builder significantly enhances the configuration experience for custom Lightning Web Components. This approach lets developers replace standard input fields with interactive, user-friendly UIs like button groups or date pickers, making component setup more intuitive. Additionally, grouping multiple related properties using custom property types enables reusable and organized configurations, such as tabs or accordions. Salesforce development teams can build more engaging, easy-to-configure components that improve user adoption and component reuse by leveraging these methods.

Takeaways
  • Create custom property editors as Lightning Web Components adhering to the property editor contract.
  • Use custom UIs like button groups or date pickers to replace standard input fields.
  • Define complex reusable property groups with custom property types using LightningTypeBundle.
  • Organize grouped properties in tabs or accordion layouts using editor.json configurations.
  • Link custom property editors and types to your component via XML metadata configurations.

Make component configuration for your Experience Builder users more convenient and intuitive by creating custom property editors and types for your custom Lightning Web Components. You can now replace basic text boxes and dropdowns with custom UIs such as date pickers, color selectors, and button groups. This blog post shows you how to make your Lightning Web Components visually interactive and easy to configure. Creating a custom property editor With custom property editors, you can create any type of UI field for configuring a property value in Experience Builder. For instance, instead of a text field where your users type in a date, you can offer a date selector with a pop-up calendar in the component property panel, where users can click to select a date. Because a custom property editor is simply a Lightning Web Component, creating one is just like creating any other Lightning Web Component, just with a few extra details.

Lightning Web ComponentsExperience CloudApp DevelopmentDeveloper ToolingTutorialsComponent ConfigurationCustom Property EditorCustom Property TypeExperience BuilderlwcSalesforce DevelopmentUI/UX