Tooltips for menu items in collaspe sidebar

Is it possible to add a tooltip to a menu item? I have a sfmenu in a sidebar with only top level items. When the sidebar is collapsed only the icons for the menu items are visible. What I like to do is display a tooltip for the menu item title when hovering over the menu item icon. 



2 Replies

JS Janakiraman Sakthivel Syncfusion Team November 2, 2021 03:48 AM UTC

Hi Michael Aston, 
 
Thank you for contacting Syncfusion support.  
  
We have checked your reported query and we need to validate more on this. So, we will update you the further details on November 3rd, 2021. We appreciate your patience until then.  
 
Regards,  
Janakiraman S.  



MK Mohan Kumar Ramasamy Syncfusion Team November 12, 2021 02:39 PM UTC

Hi Michael, 

Thanks for your patience. 

We have validated your reported query. We can achieve your requirement using title html attributes. Please refer below code snippets. 


  <SfMenu TValue="MenuItem" Orientation="@VerOrientation"> 
                            <MenuEvents TValue="MenuItem" ItemSelected="@OnMenuSelect" OnOpen="@OnOpen"></MenuEvents> 
                            <MenuItems> 
                                @foreach (var item in MainMenuItems) 
                                { 
                                    <MenuItem Text="@item.Text" IconCss="@item.IconCss" Url="@item.Url" title="@item.Text"></MenuItem> 
                                } 
                            </MenuItems> 
                        </SfMenu> 

For your reference, we have prepared a sample based on this. Please refer below link. 


Please let us know, if you need any further assistance. 

Regards, 
Mohan kumar R 


Loader.
Up arrow icon