Create a LightningTypeBundle
To create a custom property type, first create a LightningTypeBundle. Experience Builder supports only object-based custom LightningTypeBundle. It doesn't support Apex-based custom LightningTypeBundle.
Only these Lightning types are supported for a custom LightningTypeBundle's nested properties.
lightning__booleanTypelightning__dateTypelightning__dateTimeTypelightning__integerTypelightning__multilineTextTypelightning__numberTypelightning__richTextTypelightning__textTypelightning__urlType
For example, as this code sample illustrates, you can't use lightning__dateTimeStringType or a custom property type such as c__layoutProperty.
In the Custom Article component example, here's how the schema.json file for the layoutProperty LightningTypeBundle is defined. Download the sample components to follow along.
In this example, for the layoutProperty LightningTypeBundle to override the editor component for the borderStyle property and lay out the properties in a tabset format, create this editor.json file in the experienceBuilder folder.
See Also
- Code samples: custom-property-editor-code-samples
- Lightning Types Developer Guide: Object-Based Custom Lightning Types
- Lightning Types Developer Guide: Lightning Type UI Configuration