Enable color lists in the color picker tools of RadzenHtmlEditor.

This commit is contained in:
Atanas Korchev
2025-10-23 21:28:52 +03:00
parent b6089f5d28
commit b3b1f887ef
2 changed files with 4 additions and 11 deletions

View File

@@ -3,6 +3,4 @@
<EditorColorPicker Title=@Title @bind-Value=@value Icon="title" Change=@OnChange ShowHSV=@ShowHSV ShowRGBA=@ShowRGBA
ShowColors=@ShowColors ShowButton=@ShowButton HexText=@HexText RedText=@RedText GreenText=@GreenText
BlueText=@BlueText AlphaText=@AlphaText ButtonText=@ButtonText>
@ChildContent
</EditorColorPicker>
BlueText=@BlueText AlphaText=@AlphaText ButtonText=@ButtonText ChildContent=@ChildContent />

View File

@@ -3,15 +3,10 @@
<i class="notranslate rzi" style="@(!string.IsNullOrEmpty(IconColor) ? $"color:{IconColor}" : null)">@Icon</i>
<div class="rz-html-editor-color-value" style="background-color:@Value"></div>
</button>
<RadzenColorPicker
@bind-Value=@Value Change=@OnChange @onclick:stopPropagation TabIndex=-1
<RadzenColorPicker @bind-Value=@Value Change=@OnChange @onclick:stopPropagation TabIndex=-1
Open=@OnOpen Disabled=@(Editor.Disabled || !EnabledModes.HasFlag(Editor.GetMode())) ShowHSV=@ShowHSV
ShowRGBA=@ShowRGBA ShowColors=@ShowColors ShowButton=@ShowButton
HexText=@HexText RedText=@RedText GreenText=@GreenText BlueText=@BlueText AlphaText=@AlphaText
ButtonText=@ButtonText
>
@ChildContent
</RadzenColorPicker>
ShowRGBA=@ShowRGBA ShowColors=@ShowColors ShowButton=@ShowButton HexText=@HexText RedText=@RedText GreenText=@GreenText
BlueText=@BlueText AlphaText=@AlphaText ButtonText=@ButtonText ChildContent=@ChildContent />
</div>
@code {