ClassDropDownListTool
Base class for Editor tools that are dropdowns.
Definition
Namespace:Telerik.Blazor.Components.Editor
Assembly:Telerik.Blazor.dll
Syntax:
public class DropDownListTool : IEditorCommandTool, IEditorTool
Inheritance: objectDropDownListTool
Derived Classes:
Implements:
Constructors
DropDownListTool()
Declaration
public DropDownListTool()
Properties
CommandName
The name of the editor command that will be invoked.
Declaration
public string CommandName { get; set; }
Property Value
Implements
Data
The data source for the dropdown.
Declaration
public List<EditorDropDownListItem> Data { get; set; }
Property Value
DefaultText
Renders when no item is selected.
Enabled
Whether the tool is enabled.
FooterTemplate
Footer template for the dropdown.
Declaration
public RenderFragment FooterTemplate { get; set; }
Property Value
HeaderTemplate
Header template for the dropdown.
Declaration
public RenderFragment HeaderTemplate { get; set; }
Property Value
ItemTemplate
Template for the dropdown items.
Declaration
public RenderFragment<EditorDropDownListItem> ItemTemplate { get; set; }
Property Value
OnChange
Fires when selection happens.
Declaration
public EventCallback<object> OnChange { get; set; }
Property Value
PopupHeight
Height of the dropdown.
PopupWidth
Width of the dropdown.
Value
The value that will be passed to the command.
ValueChanged
Event that fires when the new value is selected. Used for two-way binding.
Declaration
public EventCallback<string> ValueChanged { get; set; }
Property Value
ValueTemplate
Template that renders in the main element for the selected item.
Declaration
public RenderFragment<EditorDropDownListItem> ValueTemplate { get; set; }
Property Value