We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

Which syncfusion component is this container

Hello,

In Syncfusion Angular 2 examples I see that you have everywhere a container (like picture below), is there a specific component for that? If no, is there a simple way to create it?


1 Reply

SS Subha Shree Ramanathan Syncfusion Team March 16, 2017 10:15 AM UTC

Hi Me , 

We achieved the container using HTML tags and styles in our Angular 2 sample browser. We can also achieve the same appearance using ejAccordion component with single item. Refer to the below code snippet. 

<ej-accordion> 
    <h3> 
        <a rel='nofollow' href="#">{{sampleName}}</a> 
    </h3> 
    <div> 
        <main> 
            <router-outlet></router-outlet> 
        </main> 
    </div> 
</ej-accordion> 

    
The sample name(URL hash value) act as header and routing component will be the content for ejAccordion component. 

We have prepared Angular 2 application to achieve the requirement. 
 sample 
Refer the below links to know more about ejAccordion component. 


Please let us know if you need further assistance on this. 

Regards, 
Subha Shree D.R 




Loader.
Live Chat Icon For mobile
Up arrow icon