blazor-devexpress-dot-blazor-dot-dxpopupbase-53f1dd4b.md
Specifies text displayed in the Popup body.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[Parameter]
public string BodyText { get; set; }
| Type | Description |
|---|---|
| String |
The body’s text.
|
Use the BodyText and HeaderText properties to specify text displayed in the Popup body and header. To display text in the Popup footer, set the ShowFooter property to true and define the FooterText property. All predefined appearance settings apply to these Popup elements.
Implement two-way binding for the Visible property to show the Popup in code and update the property value when a user closes the Popup.
<div @onclick="@(() => PopupVisible = true)">
<p>CLICK TO SHOW A POP-UP WINDOW</p>
</div>
<DxPopup @bind-Visible="@PopupVisible"
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." />
@code {
bool PopupVisible { get; set; } = false;
}
You can also use the following properties to customize the body’s content and appearance:
BodyText and BodyCssClass properties.BodyText, BodyCssClass, and BodyContentTemplate properties.For additional information about Popup customization, refer to the following help topic: Content and Appearance.
See Also