New to Telerik UI for ASP.NET Core? Start a free 30-day trial

Defines the fluent API for configuring List<EditorToolItem>

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class EditorToolItemFactory

Inheritance: objectEditorToolItemFactory

Inherited Members object.GetType()object.MemberwiseClone()object.ToString()object.Equals(object)object.Equals(object, object)object.ReferenceEquals(object, object)object.GetHashCode()...

Constructors

EditorToolItemFactory method.

C#
public EditorToolItemFactory(List<EditorToolItem> container)
Parameters:containerList<EditorToolItem>

Properties

Gets or sets the Container.

C#
protected List<EditorToolItem> Container { get; }

Editor member.

C#
public Editor Editor { get; set; }

Methods

Adds an item to the collection

C#
public virtual EditorToolItemBuilder Add()
Returns:

EditorToolItemBuilder

Returns a EditorToolItemBuilder with the available configuration options.

Modifies the default options of the Editor tools.

C#
public EditorToolItemFactory Add(string text, string value)
Parameters:textstring

The string that the item will show.

valuestring

The value that will be applied by the tool when this item is selected.

Returns:

EditorToolItemFactory

Returns the current EditorToolItemFactory instance.

Example:
C#
@( Html.Kendo().Editor()
.Name("Editor")
.Tools(tools =&gt; tools
.FontName(items =&gt; items
.Add("Verdana", "Verdana,Geneva,sans-serif")
.Add("Garamond", "Garamond, serif")
)
)
)