blazor-devexpress-dot-blazor-dot-dxdropdownbuttonbase.md
Specifies the component’s item collection.
Namespace : DevExpress.Blazor
Assembly : DevExpress.Blazor.v25.2.dll
NuGet Package : DevExpress.Blazor
[DefaultValue(null)]
[Parameter]
public RenderFragment Items { get; set; }
| Type | Default | Description |
|---|---|---|
| RenderFragment | null |
A collection of items (UI fragments).
|
Use the Items property to define a collection of items in the following components:
DxDropDownButtonA toggleable button that reveals a drop-down element with a list of commands or custom content.DxSplitButtonA composite control that consists of a primary button and a toggleable secondary button that reveals a drop-down element.DxDropDownButtonItemDefines a drop-down list item. Used in DxDropDownButton or DxSplitButton.
Populate the component’s <Items>...</Items> tag with DxDropDownButtonItem objects on different nesting levels to create the hierarchy of drop-down buttons:
<DxDropDownButton RenderStyle="ButtonRenderStyle.Secondary"
Text="Clipboard"
IconCssClass="tb-icon tb-icon-paste"
CssClass="me-1">
<Items>
<DxDropDownButtonItem Text="Cut" IconCssClass="menu-icon-cut menu-icon" />
<DxDropDownButtonItem Text="Copy" IconCssClass="menu-icon-copy menu-icon" />
<DxDropDownButtonItem Text="Paste" IconCssClass="tb-icon tb-icon-paste" />
<DxDropDownButtonItem Text="Paste Special" BeginGroup="true">
<Items>
<DxDropDownButtonItem Text="Paste Text Only" />
<DxDropDownButtonItem Text="Paste Picture" Enabled="false" />
<DxDropDownButtonItem Text="Paste as Hyperlink" />
</Items>
</DxDropDownButtonItem>
</Items>
</DxDropDownButton>
.tb-icon-paste {
-webkit-mask-image: url(../images/paste.svg);
mask-image: url(../images/paste.svg);
}
.menu-icon-copy {
mask-image: url(../images/copy.svg);
-webkit-mask-image: url(../images/copy.svg);
}
.menu-icon-cut {
mask-image: url(../images/cut.svg);
-webkit-mask-image: url(../images/cut.svg);
}
.tb-icon {
width: 1rem;
height: 1rem;
background-size: contain;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
background-position: center center;
background-color: currentColor;
opacity: 0.7;
}
.menu-icon {
width: 1rem;
height: 1rem;
min-width: 1rem;
min-height: 1rem;
background-size: contain;
mask-repeat: no-repeat;
-webkit-mask-repeat: no-repeat;
background-position: center center;
background-color: currentColor;
opacity: 0.7;
}
See Also