You need to sign in to do that
Don't have an account?
Divya Bhargava 6
How to remove the down icon beside the button menu button on lwc component
When configuring the button menu in lwc using a custom icon, it still shows the down icon beside the icon I kept. Would anyone be able to help on that how to remove attaching a screenshot for reference? below is the code I used.
<lightning-button-menu icon-name="utility:threedots" variant="border" size="xx-small" title="More actions" onselect={handleOnselect} class="slds-m-left_xx-large" >
<lightning-menu-item value="Test" label="Test"></lightning-menu-item>
<lightning-menu-item value="Test1" label="Test1"></lightning-menu-item>
</lightning-button-menu>
<lightning-button-menu icon-name="utility:threedots" variant="border" size="xx-small" title="More actions" onselect={handleOnselect} class="slds-m-left_xx-large" >
<lightning-menu-item value="Test" label="Test"></lightning-menu-item>
<lightning-menu-item value="Test1" label="Test1"></lightning-menu-item>
</lightning-button-menu>
you can try with utility:more as icon name.
I need the "Three dots Icon"
Option 2: Custom CSS If you want to completely remove the dropdown menu functionality and the down icon, you can achieve this with custom CSS. You can hide the icon using CSS styles by targeting the class associated with the down icon and setting its display property to none.
Remember that removing the dropdown icon might affect the user experience, as users might expect certain elements to have dropdown functionality. If the dropdown menu is no longer needed, it's generally better to provide clear visual feedback or indicate the button's new functionality to avoid confusion. For more information contact (https://carparkingmultiplayerapk.pro/) us.
Build cusom lwc to show the drop down list as below
Please mark it best answer !!
Thanks for the example. But in the above example there is issue. When we open in which we are using this component it showing the options without out clicking on the button. I observed that it is due to "sld-is-open" class but if I remove that it is not opening at all..how can I fix that? and the other one it is closing only when I am clicking on the button again ..but I want it to be closed wherever I clicked on the page . Is that Possible?
Thanks!!
Please find the below screenshot and also it is only workinh for first cell