Skip to main content

DxFlyout.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

Use the FooterTemplate property to display any UI render fragment in the flyout window footer. This template changes the footer rendering, including paddings and inner content alignment. If you need to place custom content in the flyout 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="() => IsOpen = !IsOpen" Id="flyout-overview-target-container">SHOW A FLYOUT</DxButton>

<DxFlyout @bind-IsOpen=IsOpen
          PositionTarget="#flyout-overview-target-container"
          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."
          Width="max(25vw, 250px)"
          FooterVisible="true">
    <FooterTemplate>
        <DxButton Text="OK" Click="@context.CloseCallback" />
    </FooterTemplate>
</DxFlyout>

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

Flyout Footer Template

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

See Also