From f678a85b9ef83366ea868a0cc5c515a835c15cad Mon Sep 17 00:00:00 2001 From: peereflits Date: Fri, 16 Jan 2026 11:33:55 +0100 Subject: [PATCH 1/3] docs: provided English translations --- .../ContextMenu/ContextMenu.razor.cs | 37 +++++++++++-------- .../ContextMenu/ContextMenuDivider.cs | 12 +++--- .../Components/ContextMenu/ContextMenuItem.cs | 25 ++++++++----- .../ContextMenu/ContextMenuTrigger.cs | 27 +++++++++----- .../ContextMenu/ContextMenuZone.razor.cs | 22 ++++++----- .../ContextMenu/IContextMenuItem.cs | 8 +++- 6 files changed, 81 insertions(+), 50 deletions(-) diff --git a/src/BootstrapBlazor/Components/ContextMenu/ContextMenu.razor.cs b/src/BootstrapBlazor/Components/ContextMenu/ContextMenu.razor.cs index 7092087e27a..a0988774bf4 100644 --- a/src/BootstrapBlazor/Components/ContextMenu/ContextMenu.razor.cs +++ b/src/BootstrapBlazor/Components/ContextMenu/ContextMenu.razor.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the Apache 2.0 License // See the LICENSE file in the project root for more information. // Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone @@ -8,24 +8,28 @@ namespace BootstrapBlazor.Components; /// -/// ContextMenu 组件 +/// ContextMenu 组件 +/// ContextMenu component /// public partial class ContextMenu { /// - /// 获得/设置 是否显示阴影 默认 true + /// 获得/设置 是否显示阴影 默认 true + /// Gets or sets whether to show shadow. Default is true. /// [Parameter] public bool ShowShadow { get; set; } = true; /// - /// 获得/设置 弹出前回调方法 默认 null + /// 获得/设置 弹出前回调方法 默认 null + /// Gets or sets the callback before showing the context menu. Default is null. /// [Parameter] public Func? OnBeforeShowCallback { get; set; } /// - /// 获得/设置 子组件 + /// 获得/设置 子组件 + /// Gets or sets the child content. /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -70,8 +74,8 @@ protected override void OnInitialized() /// /// /// - /// - /// + /// 是否首次渲染Whether this is the first render + /// 异步任务An asynchronous task protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); @@ -84,11 +88,12 @@ protected override async Task OnAfterRenderAsync(bool firstRender) } /// - /// 弹出 ContextMenu + /// 弹出 ContextMenu + /// Show the ContextMenu /// - /// - /// - /// + /// 鼠标事件参数Mouse event arguments + /// 上下文项Context item + /// 异步任务An asynchronous task internal async Task Show(MouseEventArgs args, object? contextItem) { _contextItem = contextItem; @@ -109,14 +114,16 @@ private async Task OnClickItem(ContextMenuItem item) } /// - /// 增加 ContextMenuItem 方法 + /// 增加 ContextMenuItem 方法 + /// Add a ContextMenuItem. /// - /// + /// 要添加的项The item to add internal void AddItem(IContextMenuItem item) => _contextMenuItems.Add(item); /// - /// 移除 ContextMenuItem 方法 + /// 移除 ContextMenuItem 方法 + /// Remove a ContextMenuItem. /// - /// + /// 要移除的项The item to remove internal void RemoveItem(IContextMenuItem item) => _contextMenuItems.Remove(item); } diff --git a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuDivider.cs b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuDivider.cs index 821116c6d15..2bb0887727f 100644 --- a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuDivider.cs +++ b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuDivider.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the Apache 2.0 License // See the LICENSE file in the project root for more information. // Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone @@ -8,7 +8,8 @@ namespace BootstrapBlazor.Components; /// -/// ContextMenuDivider 组件 +/// ContextMenuDivider 组件 +/// ContextMenuDivider component /// public class ContextMenuDivider : Divider, IContextMenuItem, IDisposable { @@ -29,15 +30,16 @@ protected override void OnInitialized() /// /// /// - /// + /// 渲染树生成器The render tree builder protected override void BuildRenderTree(RenderTreeBuilder builder) { } private bool disposedValue; /// - /// 释放资源方法 + /// 释放资源方法 + /// Method to release resources. /// - /// + /// 是否释放托管资源Whether to release managed resources protected virtual void Dispose(bool disposing) { if (!disposedValue) diff --git a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuItem.cs b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuItem.cs index f811f06fe3e..c07478c47eb 100644 --- a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuItem.cs +++ b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuItem.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the Apache 2.0 License // See the LICENSE file in the project root for more information. // Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone @@ -6,36 +6,42 @@ namespace BootstrapBlazor.Components; /// -/// ContextMenuItem 类 +/// ContextMenuItem 类 +/// ContextMenuItem class /// public class ContextMenuItem : ComponentBase, IContextMenuItem, IDisposable { /// - /// 获得/设置 显示文本 + /// 获得/设置 显示文本 + /// The text to display. /// [Parameter] public string? Text { get; set; } /// - /// 获得/设置 图标 + /// 获得/设置 图标 + /// The icon to display. /// [Parameter] public string? Icon { get; set; } /// - /// 获得/设置 是否被禁用 默认 false 优先级低于 + /// 获得/设置 是否被禁用 默认 false 优先级低于 + /// Gets or sets whether the item is disabled. Default is false. Lower priority than . /// [Parameter] public bool Disabled { get; set; } /// - /// 获得/设置 是否被禁用回调方法 默认 null 优先级高于 + /// 获得/设置 是否被禁用回调方法 默认 null 优先级高于 + /// Gets or sets the callback to determine if the item is disabled. Default is null. Higher priority than . /// [Parameter] public Func? OnDisabledCallback { get; set; } /// - /// 获得/设置 点击回调方法 默认 null + /// 获得/设置 点击回调方法 默认 null + /// Gets or sets the click callback. Default is null. /// [Parameter] public Func? OnClick { get; set; } @@ -57,9 +63,10 @@ protected override void OnInitialized() private bool disposedValue; /// - /// 释放资源方法 + /// 释放资源方法 + /// Method to release resources. /// - /// + /// 是否释放托管资源Whether to release managed resources protected virtual void Dispose(bool disposing) { if (!disposedValue) diff --git a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuTrigger.cs b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuTrigger.cs index 256731b3533..12c54488790 100644 --- a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuTrigger.cs +++ b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuTrigger.cs @@ -9,24 +9,28 @@ namespace BootstrapBlazor.Components; /// -/// ContextMenuTrigger 组件 +/// ContextMenuTrigger 组件 +/// ContextMenuTrigger component /// public class ContextMenuTrigger : BootstrapComponentBase { /// - /// 获得/设置 子组件 + /// 获得/设置 子组件 + /// Gets or sets the child content. /// [Parameter] public RenderFragment? ChildContent { get; set; } /// - /// 获得/设置 包裹组件 TagName 默认为 div + /// 获得/设置 包裹组件 TagName 默认为 div + /// Gets or sets the wrapper component tag name. Default is div. /// [Parameter] public string WrapperTag { get; set; } = "div"; /// - /// 获得/设置 上下文数据 + /// 获得/设置 上下文数据 + /// Gets or sets the context data. /// [Parameter] public object? ContextItem { get; set; } @@ -36,8 +40,8 @@ public class ContextMenuTrigger : BootstrapComponentBase private ContextMenuZone? ContextMenuZone { get; set; } /// - /// The timeout duration for touch events to trigger the context menu (in milliseconds). - /// Default is milliseconds. Must be greater than 0. + /// 触摸事件触发菜单的超时时间(毫秒)。默认值为 毫秒。必须大于 0。 + /// The timeout duration for touch events to trigger the context menu (in milliseconds). Default is milliseconds. Must be greater than 0. /// [Parameter] public int? OnTouchDelay { get; set; } @@ -62,7 +66,7 @@ protected override void OnParametersSet() /// /// /// - /// + /// 渲染树生成器The render tree builder protected override void BuildRenderTree(RenderTreeBuilder builder) { builder.OpenElement(0, WrapperTag); @@ -77,18 +81,21 @@ protected override void BuildRenderTree(RenderTreeBuilder builder) } /// - /// 点击 ContextMenu 菜单项时触发 + /// 点击 ContextMenu 菜单项时触发 + /// Triggered when a ContextMenu menu item is clicked. /// [DynamicDependency(DynamicallyAccessedMemberTypes.PublicMethods, typeof(MouseEventArgs))] public Task OnContextMenu(MouseEventArgs args) => ContextMenuZone.OnContextMenu(args, ContextItem); /// - /// 是否触摸 + /// 是否触摸 + /// Indicates whether touch has started. /// public bool IsTouchStarted { get; private set; } /// - /// 触摸定时器工作指示 + /// 触摸定时器工作指示 + /// Indicates whether the touch timer is working. /// private bool IsBusy { get; set; } diff --git a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuZone.razor.cs b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuZone.razor.cs index b8deed10a9b..bd8cbff4c3a 100644 --- a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuZone.razor.cs +++ b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuZone.razor.cs @@ -1,4 +1,4 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the Apache 2.0 License // See the LICENSE file in the project root for more information. // Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone @@ -8,12 +8,14 @@ namespace BootstrapBlazor.Components; /// -/// ContextMenuZone 组件 +/// ContextMenuZone 组件 +/// ContextMenuZone component /// public partial class ContextMenuZone { /// - /// 获得/设置 子组件 + /// 获得/设置 子组件 + /// Gets or sets the child content. /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -25,11 +27,12 @@ public partial class ContextMenuZone .Build(); /// - /// Trigger 调用 + /// Trigger 调用 + /// Trigger call /// - /// - /// - /// + /// 鼠标事件参数Mouse event arguments + /// 上下文项Context item + /// 异步任务An asynchronous task internal async Task OnContextMenu(MouseEventArgs args, object? contextItem) { // 弹出关联菜单 @@ -40,8 +43,9 @@ internal async Task OnContextMenu(MouseEventArgs args, object? contextItem) } /// - /// ContextMenu 组件调用 + /// ContextMenu 组件调用 + /// Called by the ContextMenu component /// - /// + /// 要注册的 ContextMenu 组件The ContextMenu component to register internal void RegisterContextMenu(ContextMenu contextMenu) => _contextMenu = contextMenu; } diff --git a/src/BootstrapBlazor/Components/ContextMenu/IContextMenuItem.cs b/src/BootstrapBlazor/Components/ContextMenu/IContextMenuItem.cs index 3031c4429ed..756b415f446 100644 --- a/src/BootstrapBlazor/Components/ContextMenu/IContextMenuItem.cs +++ b/src/BootstrapBlazor/Components/ContextMenu/IContextMenuItem.cs @@ -1,13 +1,17 @@ -// Licensed to the .NET Foundation under one or more agreements. +// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the Apache 2.0 License // See the LICENSE file in the project root for more information. // Maintainer: Argo Zhang(argo@live.ca) Website: https://www.blazor.zone +using static System.Net.WebRequestMethods; + namespace BootstrapBlazor.Components; /// -/// IContextMenuItem 接口 +/// IContextMenuItem 接口 +/// The interface for a menu item in a context menu. /// +/// This is a marker interface. public interface IContextMenuItem { From 70573f55a4dd8e668fa5ed0608cb0870efe6eb28 Mon Sep 17 00:00:00 2001 From: peereflits Date: Fri, 16 Jan 2026 12:38:40 +0100 Subject: [PATCH 2/3] docs: manual edit and improvement to the documentation --- .../ContextMenu/ContextMenu.razor.cs | 47 +++++++++++-------- .../ContextMenu/ContextMenuDivider.cs | 14 ++---- .../Components/ContextMenu/ContextMenuItem.cs | 17 ++++--- .../ContextMenu/ContextMenuTrigger.cs | 18 ++----- .../ContextMenu/ContextMenuZone.razor.cs | 14 +++--- 5 files changed, 53 insertions(+), 57 deletions(-) diff --git a/src/BootstrapBlazor/Components/ContextMenu/ContextMenu.razor.cs b/src/BootstrapBlazor/Components/ContextMenu/ContextMenu.razor.cs index a0988774bf4..435c9576a69 100644 --- a/src/BootstrapBlazor/Components/ContextMenu/ContextMenu.razor.cs +++ b/src/BootstrapBlazor/Components/ContextMenu/ContextMenu.razor.cs @@ -9,27 +9,27 @@ namespace BootstrapBlazor.Components; /// /// ContextMenu 组件 -/// ContextMenu component +/// A component that represents a context menu. /// public partial class ContextMenu { /// - /// 获得/设置 是否显示阴影 默认 true - /// Gets or sets whether to show shadow. Default is true. + /// 获得/设置 是否显示阴影 默认 + /// Flags whether to show a shadow around the context menu. Default is . /// [Parameter] public bool ShowShadow { get; set; } = true; /// /// 获得/设置 弹出前回调方法 默认 null - /// Gets or sets the callback before showing the context menu. Default is null. + /// Defines the callback that is executed before showing the context menu. Default is . /// [Parameter] public Func? OnBeforeShowCallback { get; set; } /// /// 获得/设置 子组件 - /// Gets or sets the child content. + /// The that represents the child content. /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -61,9 +61,7 @@ public partial class ContextMenu private object? _contextItem; - /// /// - /// protected override void OnInitialized() { base.OnInitialized(); @@ -71,11 +69,7 @@ protected override void OnInitialized() ContextMenuZone.RegisterContextMenu(this); } - /// /// - /// - /// 是否首次渲染Whether this is the first render - /// 异步任务An asynchronous task protected override async Task OnAfterRenderAsync(bool firstRender) { await base.OnAfterRenderAsync(firstRender); @@ -89,11 +83,20 @@ protected override async Task OnAfterRenderAsync(bool firstRender) /// /// 弹出 ContextMenu - /// Show the ContextMenu + /// Shows the . /// - /// 鼠标事件参数Mouse event arguments - /// 上下文项Context item - /// 异步任务An asynchronous task + /// + /// 鼠标事件参数 + /// The that invoked this event. + /// + /// + /// 上下文项 + /// Context that is associated with the clicked . + /// + /// + /// 异步任务 + /// An asynchronous instance of a . + /// internal async Task Show(MouseEventArgs args, object? contextItem) { _contextItem = contextItem; @@ -115,15 +118,21 @@ private async Task OnClickItem(ContextMenuItem item) /// /// 增加 ContextMenuItem 方法 - /// Add a ContextMenuItem. + /// Adds an to the menu. /// - /// 要添加的项The item to add + /// + /// 要添加的项 + /// The to add + /// internal void AddItem(IContextMenuItem item) => _contextMenuItems.Add(item); /// /// 移除 ContextMenuItem 方法 - /// Remove a ContextMenuItem. + /// Removes an from the menu. /// - /// 要移除的项The item to remove + /// + /// 要移除的项 + /// The to remove + /// internal void RemoveItem(IContextMenuItem item) => _contextMenuItems.Remove(item); } diff --git a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuDivider.cs b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuDivider.cs index 2bb0887727f..a42e3701984 100644 --- a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuDivider.cs +++ b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuDivider.cs @@ -9,7 +9,7 @@ namespace BootstrapBlazor.Components; /// /// ContextMenuDivider 组件 -/// ContextMenuDivider component +/// A component that defines a menu item as a divider in a context menu. /// public class ContextMenuDivider : Divider, IContextMenuItem, IDisposable { @@ -17,9 +17,7 @@ public class ContextMenuDivider : Divider, IContextMenuItem, IDisposable [NotNull] private ContextMenu? ContextMenu { get; set; } - /// /// - /// protected override void OnInitialized() { base.OnInitialized(); @@ -27,10 +25,7 @@ protected override void OnInitialized() ContextMenu.AddItem(this); } - /// /// - /// - /// 渲染树生成器The render tree builder protected override void BuildRenderTree(RenderTreeBuilder builder) { } private bool disposedValue; @@ -39,7 +34,10 @@ protected override void BuildRenderTree(RenderTreeBuilder builder) { } /// 释放资源方法 /// Method to release resources. /// - /// 是否释放托管资源Whether to release managed resources + /// + /// 是否释放托管资源 + /// Flags whether to release managed resources + /// protected virtual void Dispose(bool disposing) { if (!disposedValue) @@ -52,9 +50,7 @@ protected virtual void Dispose(bool disposing) } } - /// /// - /// public void Dispose() { Dispose(disposing: true); diff --git a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuItem.cs b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuItem.cs index c07478c47eb..04fbe336089 100644 --- a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuItem.cs +++ b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuItem.cs @@ -7,7 +7,7 @@ namespace BootstrapBlazor.Components; /// /// ContextMenuItem 类 -/// ContextMenuItem class +/// A type that represents a menu item in a . /// public class ContextMenuItem : ComponentBase, IContextMenuItem, IDisposable { @@ -20,28 +20,31 @@ public class ContextMenuItem : ComponentBase, IContextMenuItem, IDisposable /// /// 获得/设置 图标 - /// The icon to display. + /// The CSS class name that represents an icon (if any) /// + /// + /// Icon="fa-solid fa-bookmark" + /// [Parameter] public string? Icon { get; set; } /// /// 获得/设置 是否被禁用 默认 false 优先级低于 - /// Gets or sets whether the item is disabled. Default is false. Lower priority than . + /// Flags whether the item is disabled. Default is . It has a lower priority than . /// [Parameter] public bool Disabled { get; set; } /// /// 获得/设置 是否被禁用回调方法 默认 null 优先级高于 - /// Gets or sets the callback to determine if the item is disabled. Default is null. Higher priority than . + /// Defines the callback to determine if the item is disabled. Default is . It has a higher priority than . /// [Parameter] public Func? OnDisabledCallback { get; set; } /// /// 获得/设置 点击回调方法 默认 null - /// Gets or sets the click callback. Default is null. + /// Defines the click callback. Default is . /// [Parameter] public Func? OnClick { get; set; } @@ -50,9 +53,7 @@ public class ContextMenuItem : ComponentBase, IContextMenuItem, IDisposable [NotNull] private ContextMenu? ContextMenu { get; set; } - /// /// - /// protected override void OnInitialized() { base.OnInitialized(); @@ -79,9 +80,7 @@ protected virtual void Dispose(bool disposing) } } - /// /// - /// public void Dispose() { Dispose(disposing: true); diff --git a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuTrigger.cs b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuTrigger.cs index 12c54488790..f378f5b6487 100644 --- a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuTrigger.cs +++ b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuTrigger.cs @@ -10,20 +10,17 @@ namespace BootstrapBlazor.Components; /// /// ContextMenuTrigger 组件 -/// ContextMenuTrigger component +/// A component that defines a trigger that shows a . /// public class ContextMenuTrigger : BootstrapComponentBase { - /// - /// 获得/设置 子组件 - /// Gets or sets the child content. - /// + /// [Parameter] public RenderFragment? ChildContent { get; set; } /// /// 获得/设置 包裹组件 TagName 默认为 div - /// Gets or sets the wrapper component tag name. Default is div. + /// The HTML tag name to use for the trigger. Default is <div>. /// [Parameter] public string WrapperTag { get; set; } = "div"; @@ -53,9 +50,7 @@ public class ContextMenuTrigger : BootstrapComponentBase .AddClassFromAttributes(AdditionalAttributes) .Build(); - /// /// - /// protected override void OnParametersSet() { base.OnParametersSet(); @@ -63,10 +58,7 @@ protected override void OnParametersSet() OnTouchDelay ??= Options.CurrentValue.ContextMenuOptions.OnTouchDelay; } - /// /// - /// - /// 渲染树生成器The render tree builder protected override void BuildRenderTree(RenderTreeBuilder builder) { builder.OpenElement(0, WrapperTag); @@ -82,14 +74,14 @@ protected override void BuildRenderTree(RenderTreeBuilder builder) /// /// 点击 ContextMenu 菜单项时触发 - /// Triggered when a ContextMenu menu item is clicked. + /// Triggered when a context menu item is clicked. /// [DynamicDependency(DynamicallyAccessedMemberTypes.PublicMethods, typeof(MouseEventArgs))] public Task OnContextMenu(MouseEventArgs args) => ContextMenuZone.OnContextMenu(args, ContextItem); /// /// 是否触摸 - /// Indicates whether touch has started. + /// Indicates whether a touch event is started. /// public bool IsTouchStarted { get; private set; } diff --git a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuZone.razor.cs b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuZone.razor.cs index bd8cbff4c3a..e61c5be0eb5 100644 --- a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuZone.razor.cs +++ b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuZone.razor.cs @@ -9,14 +9,11 @@ namespace BootstrapBlazor.Components; /// /// ContextMenuZone 组件 -/// ContextMenuZone component +/// The ContextMenuZone defines the area in the DOM where the context menu can be displayed. /// public partial class ContextMenuZone { - /// - /// 获得/设置 子组件 - /// Gets or sets the child content. - /// + /// [Parameter] public RenderFragment? ChildContent { get; set; } @@ -44,8 +41,11 @@ internal async Task OnContextMenu(MouseEventArgs args, object? contextItem) /// /// ContextMenu 组件调用 - /// Called by the ContextMenu component + /// Registers a with this zone. /// - /// 要注册的 ContextMenu 组件The ContextMenu component to register + /// + /// 要注册的 ContextMenu 组件 + /// The to register + /// internal void RegisterContextMenu(ContextMenu contextMenu) => _contextMenu = contextMenu; } From a9687f54e8e1fe5638ae77f7b18013efb696708c Mon Sep 17 00:00:00 2001 From: peereflits Date: Fri, 16 Jan 2026 12:59:19 +0100 Subject: [PATCH 3/3] docs: wrapped example in code block --- src/BootstrapBlazor/Components/ContextMenu/ContextMenuItem.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuItem.cs b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuItem.cs index 04fbe336089..30e22411ccc 100644 --- a/src/BootstrapBlazor/Components/ContextMenu/ContextMenuItem.cs +++ b/src/BootstrapBlazor/Components/ContextMenu/ContextMenuItem.cs @@ -23,7 +23,9 @@ public class ContextMenuItem : ComponentBase, IContextMenuItem, IDisposable /// The CSS class name that represents an icon (if any) /// /// + /// /// Icon="fa-solid fa-bookmark" + /// /// [Parameter] public string? Icon { get; set; }