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

Header Template in Dashboard Layout

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. 
        <div class="content"> 
            <div> Panel content3</div> 
            @* Create a footer element*@ 
             <div class="footer">Footer</div> 
    #dashboard .content { 
        position: relative; 
        text-align: center; 
    /* Current Dashboard layout footer styles*/ 
    #dashboard .footer { 
        position: absolute; 
        border-top-style: solid; 

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. 
Shameer Ali Baig S.

Live Chat Icon For mobile
Up arrow icon