Skip to main content

DxFlyout.HeaderCssClass Property

Specifies the CSS class applied to the header.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v23.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public string HeaderCssClass { get; set; }

Property Value

Type Description
String

A CSS class name.

Remarks

Assign the CSS class name to the HeaderCssClass property to customize the header’s appearance. Use the HeaderText property to specify text displayed in the header.

<style>
    .header-style {
        <!-- your CSS rules -->
    }
    .footer-style {
        <!-- your CSS rules -->
    }
</style>

<DxButton Id="targetButton" Click="() => IsOpen = !IsOpen">Show a flyout window</DxButton>
<DxFlyout @bind-IsOpen=IsOpen PositionTarget="#targetButton" Width=400
    BodyText="Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor
            incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud
            exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat."
    HeaderVisible="true" HeaderText="Header" HeaderCssClass="header-style"
    FooterVisible="true" FooterText="Footer" FooterCssClass="footer-style">
</DxFlyout>

@code {
    bool IsOpen { get; set; } = false;
}

When you use the HeaderTextTemplate or HeaderTemplate, specified appearance settings take priority over appearance settings defined in the assigned CSS class.

For more information on how to apply CSS classes to DevExpress Blazor components, refer to the following help topic: CSS Classes.

See Also