How to create a "status bar"?

How would I go about adding a "status bar" on the bottom of my page?

Something similar to the bar at the bottom of Word or Excel. It would show various summary info about the page.

For example, Excel shows Min, Max, Average, and Sum. Word shows word count, etc.

How would I do something similar? Basically, a container of various elements where the container "sticks" to the bottom of the screen, even on resize.


1 Reply

VM Vengatesh Maniraj Syncfusion Team January 27, 2022 11:03 AM UTC

Hi Keith, 

Sorry for the delay. 

You can create a status bar on the bottom of the page by making use of the footer element in the MainLayout.razor page like the below code. 

MainLayout.razor 
<div class="page"> 
    <div class="sidebar"> 
        <NavMenu /> 
    </div> 
    <CascadingValue Value="this"> 
        <main> 
            <div class="top-row px-4"> 
                <a rel='nofollow' href=https://docs.microsoft.com/aspnet/ target="_blank">About</a> 
            </div> 
 
            <article class="content px-4"> 
                @Body 
            </article> 
            <footer> 
                // Add your summary here 
            </footer> 
        </main> 
    </CascadingValue> 
</div> 
<style> 
    footer { 
        bottom: 0px; 
        position: absolute; 
    } 
</style> 
 

Please refer to the below site for more reference about the footer element. 

To pass the summary details of the page to the footer element, please refer to the below discussion which help you to pass the value from page to MainLayout

Regards, 
Vengatesh

Loader.
Up arrow icon