BuilderFactoryExtensions.BootstrapPopupControl(BuilderFactory) Method

Creates a Popup Control layout.

Namespace: DevExpress.AspNetCore

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

Declaration

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

Parameters

Type Name Description
BuilderFactory builderFactory

A BuilderFactory object providing access to Popup Control settings.

Returns

Type Description
BootstrapPopupControlBuilder

A builder for a Popup Control layout.

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>))