Class
DropDownListTool

Base class for Editor tools that are dropdowns.

Definition

Namespace:Telerik.Blazor.Components.Editor

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class DropDownListTool : IEditorCommandTool, IEditorTool

Inheritance: objectDropDownListTool

Derived Classes: FontFamilyFontSizeFormat

Implements: IEditorCommandToolIEditorTool

Constructors

DropDownListTool()

Declaration

cs-api-definition
public DropDownListTool()

Properties

CommandName

The name of the editor command that will be invoked.

Declaration

cs-api-definition
public string CommandName { get; set; }

Property Value

string

Implements IEditorCommandTool.CommandName

Data

The data source for the dropdown.

Declaration

cs-api-definition
public List<EditorDropDownListItem> Data { get; set; }

Property Value

List<EditorDropDownListItem>

DefaultText

Renders when no item is selected.

Declaration

cs-api-definition
public string DefaultText { get; set; }

Property Value

string

Enabled

Whether the tool is enabled.

Declaration

cs-api-definition
public bool Enabled { get; set; }

Property Value

bool

FooterTemplate

Footer template for the dropdown.

Declaration

cs-api-definition
public RenderFragment FooterTemplate { get; set; }

Property Value

RenderFragment

HeaderTemplate

Header template for the dropdown.

Declaration

cs-api-definition
public RenderFragment HeaderTemplate { get; set; }

Property Value

RenderFragment

Id

Declaration

cs-api-definition
public string Id { get; set; }

Property Value

string

ItemTemplate

Template for the dropdown items.

Declaration

cs-api-definition
public RenderFragment<EditorDropDownListItem> ItemTemplate { get; set; }

Property Value

RenderFragment<EditorDropDownListItem>

OnChange

Fires when selection happens.

Declaration

cs-api-definition
public EventCallback<object> OnChange { get; set; }

Property Value

EventCallback<object>

PopupHeight

Height of the dropdown.

Declaration

cs-api-definition
public string PopupHeight { get; set; }

Property Value

string

PopupWidth

Width of the dropdown.

Declaration

cs-api-definition
public string PopupWidth { get; set; }

Property Value

string

Value

The value that will be passed to the command.

Declaration

cs-api-definition
public string Value { get; set; }

Property Value

string

ValueChanged

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

Declaration

cs-api-definition
public EventCallback<string> ValueChanged { get; set; }

Property Value

EventCallback<string>

ValueTemplate

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

Declaration

cs-api-definition
public RenderFragment<EditorDropDownListItem> ValueTemplate { get; set; }

Property Value

RenderFragment<EditorDropDownListItem>

Width

Declaration

cs-api-definition
public string Width { get; set; }

Property Value

string