Files
radzen-blazor/Radzen.Blazor/RadzenHtmlEditorCustomTool.razor

14 lines
375 B
Plaintext

@using Radzen.Blazor.Rendering
@if (Visible)
{
@if (Template == null)
{
<EditorButton Title=@Title Click=@OnClick Icon=@Icon IconColor="@IconColor" Selected=@Selected Disabled=@Disabled EnabledModes="@EnabledModes"/>
}
else if (Editor != null && Template != null)
{
<div class="rz-html-editor-custom-tool">@Template(Editor)</div>
}
}