Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikSmartPasteButton : ButtonBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentButtonBaseTelerikSmartPasteButton
Implements:
Inherited Members
Constructors
public TelerikSmartPasteButton()
Properties
Specifies the key of the registered IChatClient service to be used by the Smart Paste Button.
[Parameter]
public string ChatClientKey { get; set; }
Specifies whether the Smart Paste Button should use the AI chat client to process Smart Paste requests. By default, this is set to "true".
[Parameter]
public bool EnableChatClient { get; set; }
Displays a font, SVG, or custom icon, such as "ArrowRight", after the button content without replacing the leading Smart Paste icon.
Use EndIconVariant to select an SVG variant.
[Parameter]
public object EndIcon { get; set; }
Specifies the SVG variant for EndIcon. When null, empty, or unsupported, the icon's default SVG content is rendered. Font and custom CSS icons are unaffected.
[Parameter]
public string EndIconVariant { get; set; }
FormFields
IEnumerable<SmartPasteFormField>
Key value pairs representing additional form fields to be populated by the Smart Paste Button. The keys are the field identifiers, and the values are the corresponding field values.
[Parameter]
public IEnumerable<SmartPasteFormField> FormFields { get; set; }
Event callback that is invoked before sending the Smart Paste request to the AI service.
[Parameter]
public EventCallback<SmartPasteButtonRequestStartEventArgs> OnRequestStart { get; set; }
Event callback that is invoked after receiving the Smart Paste response from the AI service.
[Parameter]
public EventCallback OnRequestStop { get; set; }
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
public override void Dispose()
Overrides:
public Task PasteAsync(SmartPasteResponse response)