+ Start a Discussion
Tapasvini MakvanaTapasvini Makvana 

Submenu creation in lightning Components


I want to create a submenu using the lightning component.using existing ui:menu component we can create menu but i need to create submenu of menuitem. Can anyone help me how can i achieve it??
Thanks in advance..
Ramakrishna Reddy GouniRamakrishna Reddy Gouni
do you want sub menu navigation, it not work in salesforce org. it is possible in communities interface. salesforce provided all kind of interfaces here. by using interfaces you can develop your own templates and layouts as your requirment. 
Deepali KulshresthaDeepali Kulshrestha
Hi Tapasvini,

As per your requirement, you can use the below code to create submenu in the lightning component:

    <ui:menuTriggerLink label="My Favourite Pie"/>
        <ui:actionMenuItem aura:id="item1" label="Chicken and Mushroom"/>
        <ui:actionMenuItem aura:id="item2" label="Steak and Ale"/>
        <ui:actionMenuItem aura:id="item3" label="Cheese and Onion"/>

For more detail refer to these links:

I hope this solution will help you. Please mark it as best answers if it helps.
Deepali Kulshrestha