Class
TelerikSmartPasteButton

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class TelerikSmartPasteButton : ButtonBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentButtonBaseTelerikSmartPasteButton

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members ButtonBase.IdButtonBase.ChildContentButtonBase.TitleButtonBase.IconButtonBase.EnabledButtonBase.TabIndexButtonBase.FillModeButtonBase.RoundedButtonBase.SizeButtonBase.ThemeColorButtonBase.AriaLabelButtonBase.AriaLabelledByButtonBase.AriaDescribedByButtonBase.AriaControlsBaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)ComponentBase.SetParametersAsync(ParameterView)

Constructors

TelerikSmartPasteButton()

Declaration

cs-api-definition
public TelerikSmartPasteButton()

Properties

ChatClientKey

Specifies the key of the registered service to be used by the Smart Paste Button.

Declaration

cs-api-definition
[Parameter]
public string ChatClientKey { get; set; }

Property Value

string

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

cs-api-definition
[Parameter]
public bool EnableChatClient { get; set; }

Property Value

bool

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

cs-api-definition
[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

cs-api-definition
[Parameter]
public EventCallback<SmartPasteButtonRequestStartEventArgs> OnRequestStart { get; set; }

Property Value

EventCallback<SmartPasteButtonRequestStartEventArgs>

OnRequestStop

Event callback that is invoked after receiving the Smart Paste response from the AI service.

Declaration

cs-api-definition
[Parameter]
public EventCallback OnRequestStop { get; set; }

Property Value

EventCallback

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

Dispose()

Declaration

cs-api-definition
public override void Dispose()

Overrides BaseComponent.Dispose()

OnAfterRenderAsync(bool)

Declaration

cs-api-definition
protected override Task OnAfterRenderAsync(bool firstRender)

Parameters

firstRender

bool

Returns

Task

Overrides BaseComponent.OnAfterRenderAsync(bool)

PasteAsync(SmartPasteResponse)

Declaration

cs-api-definition
public Task PasteAsync(SmartPasteResponse response)

Parameters

response

SmartPasteResponse

Returns

Task