lightning__ECSFSApp Target

Enables a component to be used in Field Service Mobile App Builder.

Configures the component for Field Service Mobile App Builder and defines component properties. The targetConfigs tag contains at least one targetConfig tag.

Configures a page type with this attribute.

AttributeDescriptionRequired
targetsSpecify one or more page types in the targets attribute, such as <targetConfig targets="lightning__ECSFSApp"> or <targetConfig targets="lightning__ECSFSApp,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. You can also include one or more event tags.

Specifies a public property of a component that can be set in Field Service Mobile App Builder. The component author defines the property in the component’s JavaScript class using the @api decorator. See the Usage section.

Use the property tag with these attributes.

AttributeTypeDescriptionRequired
nameStringThe attribute name. This value must match the property name in the component’s JavaScript class.Yes
typeStringThe attribute's data type. Valid values are:
  • Boolean
  • Integer
  • Picklist
  • String
Yes
datasourceStringRenders a field as a picklist, with static values. Supported only if the type attribute is String. For example: datasource="value1,value2,value3". You can also set the picklist values dynamically using an Apex class, such as: datasource="apex://MyCustomPickList". For more information, see Create Dynamic Picklists for Your Custom Components.
defaultStringThe default value for the attribute.
descriptionStringDisplays as an i-bubble for the attribute in Field Service Mobile App Builder.
labelStringDisplays as a label for the attribute in Field Service Mobile App Builder.
placeholderStringInput placeholder text for the attribute when it displays in Field Service Mobile App Builder. This text is the ghost text in text fields and text areas before a user starts typing. Supported only if the type attribute is String.
maxIntegerThe maximum allowed value for an attribute of type Integer.
maxLengthIntegerThe maximum number of characters allowed for an attribute of type String.
minIntegerThe minimum allowed value for an attribute of type Integer.
minLengthIntegerThe minimum number of characters allowed for an attribute of type String.
requiredBooleanSpecifies whether the attribute is required. The default value is false.

To expose a component property in Field Service Mobile App Builder, define the property in the component’s JavaScript class using the @api decorator.

See Also