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

Header Template in Dashboard Layout

Thread ID:

Created:

Updated:

Platform:

Replies:

150758 Jan 18,2020 11:20 AM UTC Jan 20,2020 11:01 AM UTC Blazor 1
loading
Tags: Dashboard Layout
Mohamed Farouk
Asked On January 18, 2020 11:20 AM UTC

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

Shameer Ali Baig Sulaiman Ali Baig [Syncfusion]
Replied On 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.

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