Class DropDownListTool
Base class for Editor tools that are dropdowns.
Inheritance
Namespace: Telerik.Blazor.Components.Editor
Assembly: Telerik.Blazor.dll
Syntax
public class DropDownListTool : Object, IEditorInputTool, IEditorCommandTool, IEditorTool
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
System.String
|
Implements
Data
The data source for the dropdown.
Declaration
public List<EditorDropDownListItem> Data { get; set; }
Property Value
System.Collections.Generic.List<EditorDropDownListItem>
|
DefaultText
Renders when no item is selected.
Declaration
public string DefaultText { get; set; }
Property Value
System.String
|
Enabled
Whether the tool is enabled.
Declaration
public bool Enabled { get; set; }
Property Value
System.Boolean
|
FooterTemplate
HeaderTemplate
Header template for the dropdown.
Declaration
public RenderFragment HeaderTemplate { get; set; }
Property Value
Microsoft.AspNetCore.Components.RenderFragment
|
Id
Declaration
public string Id { get; set; }
Property Value
System.String
|
ItemTemplate
Template for the dropdown items.
Declaration
public RenderFragment<EditorDropDownListItem> ItemTemplate { get; set; }
Property Value
Microsoft.AspNetCore.Components.RenderFragment<EditorDropDownListItem>
|
OnChange
Fires when selection happens.
Declaration
public EventCallback<object> OnChange { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<System.Object>
|
PopupHeight
Height of the dropdown.
Declaration
public string PopupHeight { get; set; }
Property Value
System.String
|
PopupWidth
Width of the dropdown.
Declaration
public string PopupWidth { get; set; }
Property Value
System.String
|
Value
The value that will be passed to the command.
Declaration
public string Value { get; set; }
Property Value
System.String
|
ValueChanged
Event that fires when the new value is selected. Used for two-way binding.
Declaration
public EventCallback<string> ValueChanged { get; set; }
Property Value
Microsoft.AspNetCore.Components.EventCallback<System.String>
|
ValueTemplate
Template that renders in the main element for the selected item.
Declaration
public RenderFragment<EditorDropDownListItem> ValueTemplate { get; set; }
Property Value
Microsoft.AspNetCore.Components.RenderFragment<EditorDropDownListItem>
|
Width
Declaration
public string Width { get; set; }
Property Value
System.String
|
Explicit Interface Implementations
IEditorCommandTool.Title
Declaration
string IEditorCommandTool.Title { get; set; }
Returns
System.String
|