Hi Mukesh, if in search box we need a dropdown with certain values and want to filter with those values,then what change will we need to do ? I tried with this <lightning-button-menu alternative-text="Show menu" onselect={handleSearch}> <lightning-menu-item value="AMER CAN" label="AMER CAN"></lightning-menu-item> <lightning-menu-item value="AMER CMT" label="AMER CMT"></lightning-menu-item> </lightning-button-menu>
Hi Prachi,
HTML:-Please follow this code:-
AccountController:-
JAVASCRIPT:-
JS-meta.xml:
RESULT:-
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
All Answers
Hi Prachi,
HTML:-Please follow this code:-
AccountController:-
JAVASCRIPT:-
JS-meta.xml:
RESULT:-
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh
I tried with this
<lightning-button-menu alternative-text="Show menu" onselect={handleSearch}>
<lightning-menu-item value="AMER CAN" label="AMER CAN"></lightning-menu-item>
<lightning-menu-item value="AMER CMT" label="AMER CMT"></lightning-menu-item>
</lightning-button-menu>
You have removed BEST ANSWER as you maked why?
for next soltion please create a new question, i will provide best solution
if you need any assistanse, Please let me know!!
Kindly mark my solution as the best answer if it helps you.
Thanks
Mukesh