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()
Methods
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Overrides:
public override void Dispose()
Overrides:
public Task PasteAsync(SmartPasteResponse response)
Properties
Specifies the key of the registered 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; }
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; }