ToolbarItemClickEventArgs.ItemName Property
Specifies a clicked item’s Name property value.
Namespace: DevExpress.Blazor
Assembly: DevExpress.Blazor.v24.1.dll
NuGet Package: DevExpress.Blazor
Declaration
public string ItemName { get; }
Property Value
Type | Description |
---|---|
String | The item name. |
Remarks
<DxToolbar ItemClick="@OnItemCommonClick">
<Items>
<DxToolbarItem Name="Item1" Text="Item1" Tooltip="Item1" />
<DxToolbarItem Name="Item2" Text="Item2" Tooltip="Item2" />
<DxToolbarItem Name="Left" BeginGroup="true" IconCssClass="oi oi-align-left" Tooltip="Align Left" />
<DxToolbarItem Name="Center" IconCssClass="oi oi-align-center" Tooltip="Align Center" />
<DxToolbarItem Name="Right" IconCssClass="oi oi-align-right" Tooltip="Align Right" />
<DxToolbarItem Text="Documentation" BeginGroup="true" IconCssClass="oi oi-info" Tooltip="Documentation (opens in a new window)"
Alignment="ToolbarItemAlignment.Right" target="_blank"
NavigateUrl="https://docs.devexpress.com/Blazor/" />
</Items>
</DxToolbar>
@ClickedItem
@code {
public string ClickedItem { get; set; } = "";
void OnItemCommonClick(ToolbarItemClickEventArgs e) {
ClickedItem = $"The '{e.ItemName}' button has been clicked";
}
}
See Also