function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Renato Barucco 1Renato Barucco 1 

Search inside lightning-dual-listbox in LWC

I have a component with a lightning-dual-listbox. I need to make a search function for the available items. The user searchs and only the matching items are going to be displayed.
This is the code:
<!-- DUELING PICKLIST --> 
<lightning-layout-item flexibility="auto" padding="around-small"> 
     <p><font style="font-weight: bold;">Select Users (Required)<font style="color:red;">*</font></font></p> 
     <div class="custom-box slds-box slds-p-around_medium slds-text-align_center"> 
          <lightning-dual-listbox label="" source-label="Available" selected-label="Selected" options={options} value={values} class="slds-p-top_medium" onchange={handleChange}>
          </lightning-dual-listbox> 
     </div>
</lightning-layout-item> 
<!-- END DUELING PICKLIST -->
How it looks:
User-added image
Is it possible to search inside the picklist?
Best Regards, Renato
MagulanDuraipandianMagulanDuraipandian
Renato,
Check this for sample code: https://www.infallibletechie.com/2022/01/search-in-lightning-dual-listbox-in.html