The requested page is not available for the requested platform. You are viewing the content for Default platform.

BuilderFactoryExtensions.BootstrapPopupControl(BuilderFactory) Method

Creates a Popup Control layout.

Namespace: DevExpress.AspNetCore

Assembly: DevExpress.AspNetCore.Bootstrap.v18.2.dll

Declaration

public static BootstrapPopupControlBuilder BootstrapPopupControl(
    this BuilderFactory builderFactory
)
<ExtensionAttribute>
Public Shared Function BootstrapPopupControl(
    builderFactory As BuilderFactory
) As BootstrapPopupControlBuilder

Parameters

Name Type Description
builderFactory BuilderFactory

A BuilderFactory object providing access to Popup Control settings.

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()
    .ShowOnPageLoad(true)
    .PopupElementCssSelector("#default-popup-element")
    .PopupHorizontalAlign(PopupHorizontalAlign.Center)
    .PopupVerticalAlign(PopupVerticalAlign.Middle)
    .CloseAction(CloseAction.CloseButton)
    .Width("500px")
    .Content(@<text>

    </text>))
See Also