RadzenMarkdownEditorButtonBase Class

Base class for RadzenMarkdownEditor toolbar tools.

Implements

IComponent

IHandleEvent

IHandleAfterRender

Inherited Members

ComponentBase.BuildRenderTree

ComponentBase.OnInitializedAsync

ComponentBase.OnParametersSet

ComponentBase.OnParametersSetAsync

ComponentBase.StateHasChanged

ComponentBase.ShouldRender

ComponentBase.OnAfterRender

ComponentBase.OnAfterRenderAsync

ComponentBase.InvokeAsync

ComponentBase.DispatchExceptionAsync

ComponentBase.SetParametersAsync

ComponentBase.RendererInfo

ComponentBase.Assets

ComponentBase.AssignedRenderMode

Namespace: Radzen.Blazor

Assembly: Radzen.Blazor.dll

Syntax

public abstract class RadzenMarkdownEditorButtonBase : ComponentBase, IComponent, IHandleEvent, IHandleAfterRender

Constructors

RadzenMarkdownEditorButtonBaseLink to this section

Base class for RadzenMarkdownEditor toolbar tools.

Declaration
protected RadzenMarkdownEditorButtonBase()

Properties

CommandNameLink to this section

The command this tool executes. One of MarkdownEditorCommands.

Declaration
protected string CommandName { get; }
Property Value
Type Description
stringThe command this tool executes. One of MarkdownEditorCommands.

EditorLink to this section

The RadzenMarkdownEditor this tool belongs to.

Declaration
public RadzenMarkdownEditor Editor { get; set; }
Property Value
Type Description
RadzenMarkdownEditorThe RadzenMarkdownEditor this tool belongs to.

ShortcutLink to this section

The keyboard shortcut of this tool, e.g. Ctrl+B. Only Ctrl/Cmd combinations are supported, e.g. Ctrl+B (Cmd on macOS).

Declaration
public string Shortcut { get; set; }
Property Value
Type Description
stringThe keyboard shortcut of this tool, e.g. Ctrl+B. Only Ctrl/Cmd combinations are supported, e.g. Ctrl+B (Cmd on macOS).

Methods

DisposeLink to this section

Declaration
public void Dispose()

LocalizeLink to this section

Returns the localized string for key using the editor's UI culture.

Declaration
protected string Localize(string key)
Parameters
Type Name Description
string key
Returns
Type Description
string

OnClickLink to this section

Executes CommandName on the editor.

Declaration
protected virtual Task OnClick()
Returns
Type Description
Task

OnInitializedLink to this section

Declaration
protected override void OnInitialized()
An error has occurred. This app may no longer respond until reloaded. Reload 🗙