BuilderFactoryExtensions.BootstrapPopupMenu(BuilderFactory) Method
Creates a Popup Menu control.
Namespace: DevExpress.AspNetCore
Assembly: DevExpress.AspNetCore.Bootstrap.v18.2.dll
Declaration
public static BootstrapPopupMenuBuilder BootstrapPopupMenu(
this BuilderFactory builderFactory
)
Parameters
Name | Type | Description |
---|---|---|
builderFactory | BuilderFactory | A BuilderFactory object providing access to Popup Menu settings. |
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()
.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