Provides a fluent interface for configuring Editor AI settings commands.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class EditorAISettingsCommandBuilder
Inheritance: objectEditorAISettingsCommandBuilder
Inherited Members
Constructors
public EditorAISettingsCommandBuilder(EditorAICommandSettings container)
Properties
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 action that configures the icon.
Returns:The icon of the command.
public EditorAISettingsCommandBuilder Icon(string value)
The value for Icon
Returns:The id of the command.
public EditorAISettingsCommandBuilder Id(string value)
The value for Id
Returns: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(string handler)
The name of the JavaScript function that will be evaluated.
Returns:The text of the command.
public EditorAISettingsCommandBuilder Text(string value)
The value for Text
Returns: