lightning__EnablementProgram Target
Enables a component to be used in Program Builder as a custom exercise type for an Enablement program. Components appear in the Custom Items section of the Components list in the Program Builder palette.
Configures the component for a custom item on an Enablement program and defines component properties. The targetConfigs tag contains at least one targetConfig tag.
Configures a custom item for an Enablement program with this attribute.
| Attribute | Description | Required |
|---|---|---|
targets | Specify one or more page types in the targets attribute, such as <targetConfig targets="lightning__EnablementProgram"> or <targetConfig targets="lightning__EnablementProgram,lightning__AppPage">. The targets attribute value must match one or more of the page types that you listed under <targets>. | Yes |
The targetConfig tag includes at least one property tag.
Specifies the properties of the Program Builder's property sheet for a custom item. Use the property tag with these attributes.
| Attribute | Type | Description | Required |
|---|---|---|---|
name | String | The attribute name. Possible values are:
| Yes |
type | String | The data type. Possible values are:
| Yes |
datasource | String | The data source for customContent that shows the default picklist field on Program Builder's property editor. Supported only if the type attribute is String. You need to create a DynamicPickList Apex class to configure this property as a picklist. To customize the user interface for the Custom Content field, use the editor attribute and a Lightning web component instead of datasource. | |
default | String | The default value. Not applicable for customContent. Possible values are:
| |
editor | String | To customize the Custom Content field on Program Builder's property editor, use the editor attribute and a Lightning web component instead of the datasource attribute. | |
label | String | The label as displayed in the property sheet. Applies to these properties:
| |
max | Integer | Maximum value accepted for the property. Possible values are:
| |
min | Integer | Minimum value accepted for the property. Possible values are:
| |
required | Boolean | Specifies whether the attribute is required. The default value is false. |
See Also