Created
April 15, 2019 22:37
-
-
Save jsmithdev/4459612c6f2de972f2de2fb48b6c230c to your computer and use it in GitHub Desktop.
Example LWC metadata xml file to pull into vs code.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<LightningComponentBundle xmlns="urn:metadata.tooling.soap.sforce.com" fqn="LWC_NAME"> | |
<apiVersion>45.0</apiVersion> | |
<isExposed>true</isExposed> | |
<masterLabel>LWC_NAME</masterLabel> | |
<description>LWC_DESC</description> | |
<targets> | |
<target>lightning__RecordPage</target> | |
<target>lightning__AppPage</target> | |
<target>lightningCommunity__Page</target> | |
<target>lightningCommunity__Default</target> | |
</targets> | |
<targetConfigs> | |
<targetConfig targets="lightning__RecordPage"> | |
<property name="data" type="String" ></property> | |
<property name="header" type="String" ></property> | |
</targetConfig> | |
<targetConfig targets="lightning__AppPage"> | |
<property name="data" type="String" ></property> | |
<property name="header" type="String" ></property> | |
</targetConfig> | |
<targetConfig targets="lightningCommunity__Default"> | |
<property name="data" type="String" ></property> | |
<property name="header" type="String" ></property> | |
<property name="recordId" type="String" ></property> | |
</targetConfig> | |
</targetConfigs> | |
</LightningComponentBundle> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment