how to view content alongside sidebar at main-content

I used Sidebar component and inside it used Menu component, I want when I hover ex. Overview > All Data and click on it

view content of All Data alongside Sidebar component.

app.component.ts

app.component.html


Rendering Content







1 Reply 1 reply marked as answer

SP Sangeetha Priya Murugan Syncfusion Team September 9, 2020 10:46 AM UTC

 
Hi Muhamed, 
 
Thanks for contacting Syncfusion support. 
 
We have checked your reported requirement in our end and it can be achievable, by using the router link for menu items using template property with CSS customization in it. Please find the below code example. 
 
CODE SNIPPETS: 
 
@Component({ 
selector: 'my-app', 
template: ` 
..// 
<ejs-menu #menu id='menu' [items]='menuItems' (open)="open($event)"> 
    <ng-template #template let-menuItems=""> 
        <a style="display:block" class="e-custom"[routerLink]="menuItems.path"> 
            {{ menuItems.text }} 
        </a> 
    </ng-template> 
</ejs-menu> 
 ..// 
<router-outlet></router-outlet> 
` 
}) 
 
 
For your convenience, we have prepared the Menu sample with sidebar based on our suggestion. Please find the link below. 
 
 
Could you please check the above details and get back to us, if you need any further assistance on this? 
 
Regards, 
Sangeetha M 



Marked as answer
Loader.
Up arrow icon