Skip to main content

BuilderFactoryExtensions.BootstrapPopupControl(BuilderFactory, String) Method

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
builderFactory BuilderFactory

A BuilderFactory object providing access to Popup Control settings.

name String

A layout name.

Returns

Type Description
BootstrapPopupControlBuilder

A builder for a Popup Control layout.

Remarks

IMPORTANT

Bootstrap Controls for ASP.NET Core are in maintenance mode. We don’t add new controls or develop new functionality for this product line. Our recommendation is to use the ASP.NET Core Controls suite.


The code sample below demonstrates how you can use this method to create a Popup Control layout.

<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