New to Telerik UI for BlazorStart a free 30-day trial

Base class for Editor tools that are dropdowns.

Definition

Namespace:Telerik.Blazor.Components.Editor

Assembly:Telerik.Blazor.dll

Syntax:

C#
public class DropDownListTool : IEditorCommandTool, IEditorTool

Inheritance: objectDropDownListTool

Derived Classes: FontFamilyFontSizeFormat

Implements: IEditorCommandToolIEditorTool

Constructors

C#
public DropDownListTool()

Properties

The name of the editor command that will be invoked.

C#
public string CommandName { get; set; }

Implements: IEditorCommandTool.CommandName

The data source for the dropdown.

C#
public List<EditorDropDownListItem> Data { get; set; }

Renders when no item is selected.

C#
public string DefaultText { get; set; }

Whether the tool is enabled.

C#
public bool Enabled { get; set; }

Footer template for the dropdown.

C#
public RenderFragment FooterTemplate { get; set; }

Header template for the dropdown.

C#
public RenderFragment HeaderTemplate { get; set; }
C#
public string Id { get; set; }

Template for the dropdown items.

C#
public RenderFragment<EditorDropDownListItem> ItemTemplate { get; set; }

Fires when selection happens.

C#
public EventCallback<object> OnChange { get; set; }

Height of the dropdown.

C#
public string PopupHeight { get; set; }

Width of the dropdown.

C#
public string PopupWidth { get; set; }

The value that will be passed to the command.

C#
public string Value { get; set; }

Event that fires when the new value is selected. Used for two-way binding.

C#
public EventCallback<string> ValueChanged { get; set; }

Template that renders in the main element for the selected item.

C#
public RenderFragment<EditorDropDownListItem> ValueTemplate { get; set; }
C#
public string Width { get; set; }