-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Expand file tree
/
Copy pathcompositionContactSearch.html
More file actions
37 lines (37 loc) · 1.43 KB
/
compositionContactSearch.html
File metadata and controls
37 lines (37 loc) · 1.43 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<template>
<lightning-card
title="CompositionContactSearch"
icon-name="custom:custom57"
>
<div class="slds-var-m-around_medium">
<fieldset class="slds-var-p-around_x-small">
<legend>lightning-input</legend>
<lightning-input
type="search"
onchange={handleKeyChange}
class="slds-show slds-is-relative"
label="Search"
></lightning-input>
</fieldset>
<template lwc:if={contacts}>
<template for:each={contacts} for:item="contact">
<fieldset
key={contact.Id}
class="slds-var-p-horizontal_x-small"
>
<legend>c-contact-tile</legend>
<c-contact-tile contact={contact}></c-contact-tile>
</fieldset>
</template>
</template>
<template lwc:elseif={error}>
<c-error-panel errors={error}></c-error-panel>
</template>
</div>
<c-view-source source="lwc/compositionContactSearch" slot="footer">
Create an experience component by assembling multiple child
components. Type a few characters in the search bar to experience
the recipe.
</c-view-source>
</lightning-card>
</template>