Skip to content

Commit

Permalink
feat: support lwc-record-picker (#5683)
Browse files Browse the repository at this point in the history
  • Loading branch information
mingxuanzhangsfdx authored Jul 12, 2024
1 parent 846ba07 commit b8aacad
Showing 1 changed file with 22 additions and 3 deletions.
25 changes: 22 additions & 3 deletions packages/salesforcedx-vscode-lwc/snippets/lwc-html.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@
"prefix": "lwc-accordion-section"
},
"lwc-avatar": {
"body": ["<lightning-avatar src=\"${1:url}\"></lightning-avatar>"],
"body": [
"<lightning-avatar src=\"${1:url}\"></lightning-avatar>"
],
"description": "Avatar - A visual representation of an object.",
"prefix": "lwc-avatar"
},
Expand Down Expand Up @@ -1235,7 +1237,11 @@
"prefix": "lwc-layout"
},
"lwc-layout-item": {
"body": ["<lightning-layout-item>", " $0", "</lightning-layout-item>"],
"body": [
"<lightning-layout-item>",
" $0",
"</lightning-layout-item>"
],
"description": "Layout Item - Layout items take the size of their content by default",
"prefix": "lwc-layout-item"
},
Expand Down Expand Up @@ -1274,7 +1280,9 @@
"prefix": "lwc-map"
},
"lwc-menu-divider": {
"body": ["<lightning-menu-divider></lightning-menu-divider>"],
"body": [
"<lightning-menu-divider></lightning-menu-divider>"
],
"description": "Menu Divider - Creates a divider in the list of items for lightning-button-menu.",
"prefix": "lwc-menu-divider"
},
Expand Down Expand Up @@ -1360,6 +1368,17 @@
"description": "Output Field - Represents a read-only display of a label, help text, and value for a field on a Salesforce object.",
"prefix": "lwc-output-field"
},
"lwc-record-picker": {
"body": [
"<lightning-record-picker ",
" label=\"${1:label}\"",
" placeholder=\"${2:type here...}\"",
" object-api-name={${3:objectApiName}}",
"></lightning-record-picker>"
],
"description": "Record Picker - Allows you to search for a list of Salesforce Records that match search input",
"prefix": "lwc-record-picker"
},
"lwc-pill-avatar": {
"body": [
"<lightning-pill label=\"${1:Pill Label}\">",
Expand Down

0 comments on commit b8aacad

Please sign in to comment.