afv-library/skills/generating-lwc-components/assets/record-picker/recordPicker.html
sandipkumar-yadav 37aa84df42
feat: @W-22444026@ Introducing Core Skills, Datacloud Skills, Industries and Utility Skills. (#268)
* Migrating Core Salesforce Skills

* Updating pr comments

* updat reference

* Updating a skill

* Migrating Datacloud skills

* Migrating Industries cloud skills

* Validating - skills fixing

---------

Co-authored-by: Sandip Kumar Yadav <sandipkumar.yadav+sfemu@salesforce.com>
2026-05-14 19:32:15 +05:30

56 lines
2.0 KiB
HTML

<template>
<div class="slds-form-element">
<!-- Record Picker -->
<lightning-record-picker
label={label}
placeholder={placeholder}
object-api-name={objectApiName}
display-info={displayInfo}
matching-info={matchingInfo}
filter={filter}
disabled={pickerDisabled}
required={required}
onchange={handleChange}>
</lightning-record-picker>
<!-- Multi-select Pills -->
<template lwc:if={showPills}>
<div class="slds-m-top_x-small">
<!-- Selection count -->
<div class="slds-text-body_small slds-text-color_weak slds-m-bottom_xx-small">
{selectionCountMessage}
</div>
<!-- Pills container -->
<lightning-pill-container>
<template for:each={_selectedRecords} for:item="record">
<lightning-pill
key={record.id}
label={record.name}
data-id={record.id}
onremove={handleRemove}>
</lightning-pill>
</template>
</lightning-pill-container>
<!-- Clear All button -->
<template lwc:if={hasSelections}>
<lightning-button
label="Clear All"
variant="base"
class="slds-m-top_xx-small"
onclick={handleClearAll}>
</lightning-button>
</template>
</div>
</template>
<!-- Max selections warning -->
<template lwc:if={isMaxSelectionsReached}>
<div class="slds-text-color_weak slds-text-body_small slds-m-top_xx-small">
Maximum selections reached. Remove a selection to add more.
</div>
</template>
</div>
</template>