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

Defines the fluent API for configuring EditorAISettingsCommand

Definition

Namespace:Kendo.Mvc.UI.Fluent

Assembly:Kendo.Mvc.dll

Syntax:

C#
public class EditorAISettingsCommandBuilder

Inheritance: objectEditorAISettingsCommandBuilder

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

Constructors

Defines the fluent API for configuring EditorAISettingsCommand

C#
public EditorAISettingsCommandBuilder(EditorAICommandSettings container)
Parameters:containerEditorAICommandSettings

Properties

Gets the settings being configured.

C#
protected EditorAICommandSettings Container { get; }

Methods

The icon of the command. Set this option to an icon descriptor such as { name: "gear", variant: "outline" }. The variant can be outline, solid, or duotone; it applies to SVG rendering and is ignored for font icons.

C#
public EditorAISettingsCommandBuilder Icon(Action<EditorAICommandSettingsIconSettingsBuilder> configurator)
Parameters:configuratorAction<EditorAICommandSettingsIconSettingsBuilder>

The EditorAICommandSettingsIconSettingsBuilder configurator for the icon setting.

Returns:

EditorAISettingsCommandBuilder

The EditorAISettingsCommandBuilder instance of the command builder.

The icon of the command.

C#
public EditorAISettingsCommandBuilder Icon(string value)
Parameters:valuestring

The value for Icon

Returns:

EditorAISettingsCommandBuilder

The EditorAISettingsCommandBuilder instance of the command builder.

The id of the command.

C#
public EditorAISettingsCommandBuilder Id(string value)
Parameters:valuestring

The value for Id

Returns:

EditorAISettingsCommandBuilder

The EditorAISettingsCommandBuilder instance of the command builder.

Defines the items in the prompt commands.

C#
public EditorAISettingsCommandBuilder Items(Action<EditorAISettingsCommandFactory> addAction)
Parameters:addActionAction<EditorAISettingsCommandFactory>Returns:

EditorAISettingsCommandBuilder

Returns the current EditorAISettingsCommandBuilder instance.

The prompt for the command. The function accepts the following arguments: context - The selected text in the editor..

C#
public EditorAISettingsCommandBuilder Prompt(Func<object, object> handler)
Parameters:handlerFunc<object, object>

The handler code wrapped in a text tag.

Returns:

EditorAISettingsCommandBuilder

The EditorAISettingsCommandBuilder instance of the command builder.

The prompt for the command. The function accepts the following arguments: context - The selected text in the editor..

C#
public EditorAISettingsCommandBuilder Prompt(string handler)
Parameters:handlerstring

The name of the JavaScript function that will be evaluated.

Returns:

EditorAISettingsCommandBuilder

The EditorAISettingsCommandBuilder instance of the command builder.

The text of the command.

C#
public EditorAISettingsCommandBuilder Text(string value)
Parameters:valuestring

The value for Text

Returns:

EditorAISettingsCommandBuilder

The EditorAISettingsCommandBuilder instance of the command builder.