DropDownListTool
Class
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:
Implements:
Constructors
C#
public DropDownListTool()
Properties
The name of the editor command that will be invoked.
C#
public string CommandName { get; set; }
Implements:
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; }
Footer template for the dropdown.
C#
public RenderFragment FooterTemplate { get; set; }
Header template for the dropdown.
C#
public RenderFragment HeaderTemplate { 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; }
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; }