Skip to main content
A newer version of this page is available.
All docs
V20.2

DxPopup.ShowHeader Property

Specifies whether a pop-up window displays a header.

Namespace: DevExpress.Blazor

Assembly: DevExpress.Blazor.v20.2.dll

NuGet Package: DevExpress.Blazor

Declaration

[Parameter]
public bool ShowHeader { get; set; }

Property Value

Type Description
Boolean

true, to display the header; otherwise, false.

Remarks

Set the ShowHeader to false to hide the header from the pop-up window. Since the header contains the Close button, you should implement another way to close the pop-up window.

The following example demonstrates how to display the footer with the OK button that closes the pop-up window.

<DxPopup ShowHeader="false"
        @bind-Visible="@PopupVisible">
    <Content>
        <p>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.</p>
    </Content>
    <FooterTemplate>
        <div class="modal-footer">
            <button class="btn btn-primary" @onclick="@(() => PopupVisible = false)">OK</button>
        </div>   
    </FooterTemplate>
</DxPopup>

@code {
    bool PopupVisible { get; set; }
}

See Also