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

BuilderFactoryExtensions.BootstrapPopupMenu(BuilderFactory, String) Method

Creates a Popup Menu control with a specified name.

Namespace: DevExpress.AspNetCore

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

Declaration

public static BootstrapPopupMenuBuilder BootstrapPopupMenu(
    this BuilderFactory builderFactory,
    string name
)
<ExtensionAttribute>
Public Shared Function BootstrapPopupMenu(
    builderFactory As BuilderFactory,
    name As String
) As BootstrapPopupMenuBuilder

Parameters

Name Type Description
builderFactory BuilderFactory

A BuilderFactory object providing access to Popup Menu settings.

name String

A control name.

Returns

Type Description
BootstrapPopupMenuBuilder

A builder for a Popup Menu control.

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 Menu control.

<div id="default-popup-menu" class="popup-target popup-target-sm menu"></div>

@(Html.DevExpress()
   .BootstrapPopupMenu("defaultPopupMenu")
   .PopupElementCssSelector("#default-popup-menu")
   .Items(items => {
       items.Add().Text("Copy").IconCssClass("fa fa-copy");
       items.Add().Text("Cut").IconCssClass("fa fa-cut");
       items.Add().Text("Paste").IconCssClass("fa fa-paste");
       items.Add().Text("Select All").BeginGroup(true);
   }))
See Also