ClassTelerikSmartPasteButton
Definition
Namespace:Telerik.Blazor.Components
Assembly:Telerik.Blazor.dll
Syntax:
public class TelerikSmartPasteButton : ButtonBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Inheritance: objectComponentBaseBaseComponentButtonBaseTelerikSmartPasteButton
Implements:
Inherited Members
Constructors
TelerikSmartPasteButton()
Declaration
public TelerikSmartPasteButton()
Properties
ChatClientKey
Specifies the key of the registered service to be used by the Smart Paste Button.
Declaration
[Parameter]
public string ChatClientKey { get; set; }
Property Value
EnableChatClient
Specifies whether the Smart Paste Button should use the AI chat client to process Smart Paste requests. By default, this is set to "true".
Declaration
[Parameter]
public bool EnableChatClient { get; set; }
Property Value
FormFields
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.
Declaration
[Parameter]
public IEnumerable<SmartPasteFormField> FormFields { get; set; }
Property Value
IEnumerable<SmartPasteFormField>
OnRequestStart
Event callback that is invoked before sending the Smart Paste request to the AI service.
Declaration
[Parameter]
public EventCallback<SmartPasteButtonRequestStartEventArgs> OnRequestStart { get; set; }
Property Value
OnRequestStop
Event callback that is invoked after receiving the Smart Paste response from the AI service.
Declaration
[Parameter]
public EventCallback OnRequestStop { get; set; }
Property Value
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
__builder
Overrides
Dispose()
Declaration
public override void Dispose()
Overrides
PasteAsync(SmartPasteResponse)
Declaration
public Task PasteAsync(SmartPasteResponse response)
Parameters
response
SmartPasteResponse
Returns