Skip to main content

DxWindow.FooterTemplate Property

Specifies a template for the window’s footer. Replaces the default render fragment (including paddings, scrollbars, etc.)

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v24.1.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public RenderFragment<IPopupElementInfo> FooterTemplate { get; set; }

Property Value

Type Description
RenderFragment<IPopupElementInfo>

The footer template.

Remarks

The Window consists of the body and the header with the Close button. Enable the ShowFooter option to display the Window footer.

Use the FooterTemplate property to display any UI render fragment in the window footer. This template changes the footer rendering, including paddings and inner content alignment. If you need to place custom content in the window’s footer but retain its default rendering, use the FooterContentTemplate instead.

The template accepts an IPopupElementInfo object as the context parameter. You can use the parameter’s CloseCallback property to implement the Close button.

<DxButton RenderStyle="ButtonRenderStyle.Secondary" 
          Click="() => WindowVisible = !WindowVisible">SHOW A WINDOW</DxButton>
<DxWindow @bind-Visible="@WindowVisible"
          HeaderText="Header"
          BodyText="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Mauris sit amet metus vel
             nisi blandit tincidunt vel efficitur purus. Nunc nec turpis tempus, accumsan orci auctor,
             imperdiet mauris. Fusce id purus magna."
          Width="max(25vw, 250px)"
          ShowFooter="true">
    <FooterTextTemplate>
        <div style="background-color:lightgrey; padding-left:10px; font-size:10px">
            Copyright &#169; Developer Express Inc.
        </div>
    </FooterTextTemplate>
</DxWindow>

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

Blazor Window Footer Template

Implement two-way binding for the Visible property to show the Window in code and update the property value when a user closes the Window.

You can also use the following properties to customize the footer:

FooterText
Specifies text displayed in the Window footer.
FooterTextTemplate
Specifies the template for the Window’s footer text area.
FooterContentTemplate
Specifies a template for content of the window’s footer.

The FooterTemplate property takes priority over the FooterText, FooterTextTemplate, and FooterContentTemplate properties.

For more information about Window customization, refer to the following help topic: Content and Appearance.

See Also