Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 1.67 KB

sections.md

File metadata and controls

59 lines (43 loc) · 1.67 KB
title page_title description slug tags published position
Sections
AppBar - Sections
Add Content in the AppBar Component
appbar-sections
telerik,blazor,appbar,sections,section,content
true
1

Sections

The <AppBarSection> is a template-based component that allows you to render HTML content or Razor components in the AppBar component.

note Render content only inside the <AppBarSection> tag, otherwise it will display outside the AppBar component.

AppBar Section Parameters

The nested AppBarSection tag exposes parameters:

Parameter Type and Default Value Description
Class string The CSS class that will be rendered on the main wrapping element of the AppBar section. You could use that class to cascade styles.
Visible bool
(true)
Specifies if the section will be visible in the AppBar.

caption The Telerik AppBar sections with its parameter

@* The AppBar sections with its parameters *@

<style>
    .products-section-class {
        font-weight: bolder;
    }
</style>

<TelerikButton OnClick="@(() => isSectionVisible = !isSectionVisible)">Toggle the visibility of the Our Mission section</TelerikButton>

<br />

<TelerikAppBar>
    <AppBarSection Class="products-section-class">
        <span>Our Products</span>
    </AppBarSection>

    <AppBarSection Visible="@isSectionVisible">
        <span>Our Mission</span>
    </AppBarSection>
</TelerikAppBar>

@code{
    private bool isSectionVisible { get; set; } = true;
}

See Also