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

Kendo UI SmartPasteButton component

Definition

Constructors

Initializes a new instance of the SmartPasteButton class.

C#
public SmartPasteButton(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
Parameters:viewContextViewContext

The view context

initializerIJavaScriptInitializer

The JavaScriptInitializer

urlGeneratorIUrlGenerator

The URL generator.

Properties

Specifies the icon displayed when the button is in listening/processing state.

C#
public string CancelIcon { get; set; }

Specifies whether the SmartPasteButton widget will be enabled or disabled.

C#
public bool? Enable { get; set; }

Sets a value controlling how the color is applied.

C#
public FillMode? FillMode { get; set; }

Specifies custom form field configurations for AI processing.

C#
public List<SmartPasteButtonFormField> FormFields { get; set; }

Specifies the icon displayed on the button in its default state.

C#
public string Icon { get; set; }

Sets a value controlling the border radius.

C#
public Rounded? Rounded { get; set; }

The AI service configuration for processing pasted content.

C#
public AIPromptServiceSettings Service { get; set; }

The URL of the AI service for processing pasted content.

C#
public string ServiceUrl { get; set; }

Sets the size of the component.

C#
public ButtonSize? Size { get; set; }

Specifies the text displayed on the button. If not set, the button will display only an icon.

C#
public string Text { get; set; }

Sets the color of the component according to the applied theme.

C#
public ThemeColor? ThemeColor { get; set; }

Methods

C#
public override IDictionary<string, object> Serialize()
Returns:

IDictionary<string, object>

Overrides: WidgetBase.Serialize()

Writes the HTML.

C#
protected override void WriteHtml(HtmlTextWriter writer)
Parameters:writerHtmlTextWriter

The HtmlTextWriter.

Overrides: WidgetBase.WriteHtml(HtmlTextWriter)

Writes the initialization script.

C#
public override void WriteInitializationScript(TextWriter writer)
Parameters:writerTextWriter

The TextWriter.

Overrides: WidgetBase.WriteInitializationScript(TextWriter)