You need to sign in to do that
Don't have an account?
Renato 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:
Is it possible to search inside the picklist?
Best Regards, Renato
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:
Is it possible to search inside the picklist?
Best Regards, Renato
Check this for sample code: https://www.infallibletechie.com/2022/01/search-in-lightning-dual-listbox-in.html