Reference a Custom Property Type by Type Attribute
A component property can reference a custom property type via the existing type attribute. Previously, the type property was limited to a specific set of types, such as String, Integer, Boolean. Now the type property can be a fullyQualifiedName string that references a standard Lightning type or a custom LightningTypeBundle.
In the Custom Article component example, update the js-meta.xml file for CustomArticle and use the type attribute to reference a Lightning property type for the articleDate property.
In the same component example, you use the type attribute to reference the custom property type layoutProperty.
You can override the label and description attributes in the <property> definition of a custom property type. A change to the label attribute overrides the property's title attribute.
In the preceding example, the layoutProperty label "Layout" overrides the title "Layout Properties" specified in the schema.json file.
See Also
- Code samples: custom-property-editor-code-samples