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

Header Template in Dashboard Layout

Dears,
Kindly need to set the height of Header template, kindly support me how to do that
also need to add Footer Template

1 Reply

SA Shameer Ali Baig Sulaiman Ali Baig Syncfusion Team January 20, 2020 11:01 AM UTC

Hi Mohamed, 
 
Thanks for contacting Syncfusion support. 
 
Please, find the response for your queries on EJ2 Dashboard Layout below. 
 
Query 1- Set the height of header template. 
 
In Dashboard Layout component, we have a unique class for header element “e-panel-header”. By using your preferred CSS styles for this class, you can set the height for header element. 
 
Refer the below code snippet. 
 
/* Current Dashboard layout header styles*/ 
#dashboard .e-panel-header { 
    height: 30px; 
    border-bottom-style: solid; 
    text-align: center; 
} 

Query 2 – Footer Template for Dashboard layout. 
 
In Dashboard Layout component, we don’t have separate footer template. By using content template, you can align the footer element based on your requirement using CSS styles. 
 
Refer the below code snippet. 
 
<ContentTemplate> 
        <div class="content"> 
            <div> Panel content3</div> 
            @* Create a footer element*@ 
             <div class="footer">Footer</div> 
        </div> 
</ContentTemplate> 
<style> 
    #dashboard .content { 
        height:100%; 
        position: relative; 
        text-align: center; 
    } 
    /* Current Dashboard layout footer styles*/ 
    #dashboard .footer { 
        position: absolute; 
        bottom:0; 
        border-top-style: solid; 
        width:100%; 
    } 
</style> 

For your reference, we have prepared a simple Dashboard Layout contain both header and footer. Refer the below sample link. 
 
 
Please let us know, if you need any further assistance. 
 
Regards, 
Shameer Ali Baig S.

Loader.
Live Chat Icon For mobile
Up arrow icon