From b70f1f84be2a92c2c7dffce721b2c25ba4624db8 Mon Sep 17 00:00:00 2001 From: Atanas Korchev Date: Tue, 18 Jul 2023 10:08:24 +0300 Subject: [PATCH] Change the implementation of NoTools and rename it to ShowToolbar. --- Radzen.Blazor/RadzenHtmlEditor.razor | 5 ++++- Radzen.Blazor/RadzenHtmlEditor.razor.cs | 4 ++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/Radzen.Blazor/RadzenHtmlEditor.razor b/Radzen.Blazor/RadzenHtmlEditor.razor index 1d76f92d..4d1d3503 100644 --- a/Radzen.Blazor/RadzenHtmlEditor.razor +++ b/Radzen.Blazor/RadzenHtmlEditor.razor @@ -7,13 +7,15 @@ @if(Visible) {
+ @if (ShowToolbar) + {
@if (ChildContent != null) { @ChildContent } - else if (!NoTools) + else { @@ -51,6 +53,7 @@ }
+ }
diff --git a/Radzen.Blazor/RadzenHtmlEditor.razor.cs b/Radzen.Blazor/RadzenHtmlEditor.razor.cs index 7721dd41..f37a4670 100644 --- a/Radzen.Blazor/RadzenHtmlEditor.razor.cs +++ b/Radzen.Blazor/RadzenHtmlEditor.razor.cs @@ -19,10 +19,10 @@ namespace Radzen.Blazor public partial class RadzenHtmlEditor : FormComponent { /// - /// Allows for no-tool HTML editors. + /// Specifies whether to show the toolbar. Set it to false to hide the toolbar. Default value is true. /// [Parameter] - public bool NoTools { get; set; } = false; + public bool ShowToolbar { get; set; } = true; /// /// Gets or sets the mode of the editor.