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. (Last updated on: June 24, 2019).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Define a complex layout in full HTML

Thread ID:

Created:

Updated:

Platform:

Replies:

147348 Sep 6,2019 04:02 PM UTC Sep 10,2019 04:34 AM UTC Angular - EJ 2 3
loading
Tags: Splitter
Sébastien GUISSE
Asked On September 6, 2019 04:02 PM UTC

Hello Could you provide an example of layout with nested ejs-splitter Horizontal and Vertical full in HTML
Like this one :



Thanks a lot
Seb.

Narayanasamy Panneer Selvam [Syncfusion]
Replied On September 9, 2019 12:18 PM UTC

Hi Sébastien, 
 
 
Greetings from Syncfusion support. 
  
 
We cannot use nested ng-template in angular. But we can achieve your requirement with ng-container by using ng-template reference in ngTemplateOutlet attribute. Please refer the code example is given below, 
  
 Code example: 
<ejs-splitter> 
    <e-panes> 
        <e-pane size='50%' min='60px'> 
            <ng-template #content> 
                <ng-container *ngTemplateOutlet="nestedContent"></ng-container> 
            </ng-template> 
        </e-pane> 
    </e-panes> 
</ejs-splitter> 
 
<ng-template #nestedContent> 
        <ejs-splitter> 
            <e-panes> 
                <e-pane size='25%' min='60px'> 
                    <ng-template #content> 
                        <div>Left pane</div> 
                    </ng-template> 
                </e-pane> 
                <e-pane size='50%' min='60px'> 
                    <ng-template #content> 
                        <div>Center pane</div> 
                    </ng-template> 
                </e-pane> 
        </ejs-splitter> 
</ng-template> 
 
 
For your convenience we have prepared a sample. please find it in the below link,
Sample: https://stackblitz.com/edit/angular-eul97v-xbrzfa?file=app.component.html
 
 
 To know more about nested ng-template please refer in the below link, 
 
 
Regards,  
Narayanasamy P.  


Sébastien GUISSE
Replied On September 9, 2019 03:16 PM UTC

Thanks a lot for your quick response and for the stackblitz sample code
It resolve my problem
:-)

Narayanasamy Panneer Selvam [Syncfusion]
Replied On September 10, 2019 04:34 AM UTC

Hi Sébastien, 
 
You are welcome.

 
We're happy to hear that the reported issue is resolved at your end.😊 
 
Regards,  
Narayanasamy P.  


CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon