Defines the fluent API for configuring EditorAISettingsCommand
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class EditorAISettingsCommandBuilder
Inheritance: objectEditorAISettingsCommandBuilder
Inherited Members
Constructors
Defines the fluent API for configuring EditorAISettingsCommand
public EditorAISettingsCommandBuilder(EditorAICommandSettings container)
Properties
Gets the settings being configured.
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.
public EditorAISettingsCommandBuilder Icon(Action<EditorAICommandSettingsIconSettingsBuilder> configurator)
The EditorAICommandSettingsIconSettingsBuilder configurator for the icon setting.
Returns:EditorAISettingsCommandBuilder
The EditorAISettingsCommandBuilder instance of the command builder.
The icon of the command.
public EditorAISettingsCommandBuilder Icon(string value)
The value for Icon
Returns:EditorAISettingsCommandBuilder
The EditorAISettingsCommandBuilder instance of the command builder.
The id of the command.
public EditorAISettingsCommandBuilder Id(string value)
The value for Id
Returns:EditorAISettingsCommandBuilder
The EditorAISettingsCommandBuilder instance of the command builder.
Defines the items in the prompt commands.
public EditorAISettingsCommandBuilder Items(Action<EditorAISettingsCommandFactory> addAction)
EditorAISettingsCommandBuilder
Returns the current EditorAISettingsCommandBuilder instance.
The prompt for the command. The function accepts the following arguments: context - The selected text in the editor..
public EditorAISettingsCommandBuilder Prompt(Func<object, object> handler)
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..
public EditorAISettingsCommandBuilder Prompt(string handler)
The name of the JavaScript function that will be evaluated.
Returns:EditorAISettingsCommandBuilder
The EditorAISettingsCommandBuilder instance of the command builder.
The text of the command.
public EditorAISettingsCommandBuilder Text(string value)
The value for Text
Returns:EditorAISettingsCommandBuilder
The EditorAISettingsCommandBuilder instance of the command builder.