Back to Devexpress

DxFlyout.HeaderTextTemplate Property

blazor-devexpress-dot-blazor-dot-dxflyout-df25c9eb.md

latest1.8 KB
Original Source

DxFlyout.HeaderTextTemplate Property

Specifies a template for the flyout window’s header text area.

Namespace : DevExpress.Blazor

Assembly : DevExpress.Blazor.v25.2.dll

NuGet Package : DevExpress.Blazor

Declaration

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

Property Value

TypeDescription
RenderFragment<IPopupElementInfo>

The text template.

|

Remarks

Use the HeaderTextTemplate property to display any UI render fragment in the header text area.

razor
<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)"
          HeaderVisible="true">
    <HeaderTextTemplate>
        <em>Information</em>
    </HeaderTextTemplate>
</DxFlyout>

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

See Also

DxFlyout Class

DxFlyout Members

DevExpress.Blazor Namespace