SmartPasteButton
Kendo UI SmartPasteButton component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class SmartPasteButton : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent
Inheritance: objectWidgetBaseSmartPasteButton
Implements:
Inherited Members
Constructors
Initializes a new instance of the SmartPasteButton class.
public SmartPasteButton(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe URL generator.
Properties
public string CancelIcon { get; set; }
Specifies the icon displayed when the button is in listening/processing state.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 SmartPasteButtonCancelIconSettings CancelIconSettings { get; set; }
Specifies whether the SmartPasteButton widget will be enabled or disabled.
public bool? Enable { get; set; }
Defines a Kendo UI font or SVG icon that is rendered after the SmartPasteButton text.
public string EndIcon { get; set; }
Sets a value controlling how the color is applied.
public FillMode? FillMode { get; set; }
Specifies custom form field configurations for AI processing.
public List<SmartPasteButtonFormField> FormFields { get; set; }
Specifies the icon displayed on the button in its default state.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 SmartPasteButtonIconSettings IconSettings { get; set; }
The AI service configuration for processing pasted content.
public AIPromptServiceSettings Service { get; set; }
The URL of the AI service for processing pasted content.
public string ServiceUrl { get; set; }
Sets the size of the component.
public ButtonSize? Size { get; set; }
Specifies the text displayed on the button. If not set, the button will display only an icon.
public string Text { get; set; }
Sets the color of the component according to the applied theme.
public ThemeColor? ThemeColor { get; set; }
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: