BuilderFactoryExtensions.BootstrapPopupControl(BuilderFactory, String) Method
In This Article
Creates a Popup Control layout with a specified name.
Namespace: DevExpress.AspNetCore
Assembly: DevExpress.AspNetCore.Bootstrap.v18.2.dll
#Declaration
public static BootstrapPopupControlBuilder BootstrapPopupControl(
this BuilderFactory builderFactory,
string name
)
#Parameters
Name | Type | Description |
---|---|---|
builder |
Builder |
A Builder |
name | String | A layout name. |
#Returns
Type | Description |
---|---|
Bootstrap |
A builder for a Popup Control layout. |
#Remarks
IMPORTANT
Bootstrap Controls for ASP.
The code sample below demonstrates how you can use this method to create a Popup Control layout.
cshtml
<div id="default-popup-element" class="popup-target popup-target-sm"></div>
@(Html.DevExpress()
.BootstrapPopupControl("popupControlDefault")
.ShowOnPageLoad(true)
.PopupElementCssSelector("#default-popup-element")
.PopupHorizontalAlign(PopupHorizontalAlign.Center)
.PopupVerticalAlign(PopupVerticalAlign.Middle)
.CloseAction(CloseAction.CloseButton)
.Width("500px")
.Content(@<text>
</text>))
See Also