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
Specifies the icon displayed when the button is in listening/processing state.
public string CancelIcon { get; set; }
Specifies whether the SmartPasteButton widget will be enabled or disabled.
public bool? Enable { 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.
public string Icon { 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: