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__booleanType
  • lightning__dateType
  • lightning__dateTimeType
  • lightning__integerType
  • lightning__multilineTextType
  • lightning__numberType
  • lightning__richTextType
  • lightning__textType
  • lightning__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