Class
InlineAIPrompt

Definition

Namespace:Telerik.Blazor.Components

Assembly:Telerik.Blazor.dll

Syntax:

cs-api-definition
public class InlineAIPrompt : AIPromptBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable

Inheritance: objectComponentBaseBaseComponentAIPromptBaseInlineAIPrompt

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members AIPromptBase.OnInitializedAsync()AIPromptBase.InternalHandleRequest(AIPromptPromptRequestEventArgs)AIPromptBase.WidthAIPromptBase.HeightAIPromptBase.PromptContextAIPromptBase.SystemPromptAIPromptBase.OnPromptRequestAIPromptBase.OnCommandExecuteAIPromptBase.PromptAIPromptBase.PromptChangedAIPromptBase.CommandsBaseComponent.ShouldRender()BaseComponent.Dispose()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.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.DispatchExceptionAsync(Exception)

Constructors

InlineAIPrompt()

Declaration

cs-api-definition
public InlineAIPrompt()

Properties

MaxWidth

Declaration

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

Property Value

string

OnOutputInsert

Called when the users click the insert button on an output.

Declaration

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

Property Value

EventCallback<string>

OnOutputReplace

Called when the users click the replace button on an output.

Declaration

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

Property Value

EventCallback<string>

SelectionRect

Sets the selection rect.

Declaration

cs-api-definition
[Parameter]
public PopupAnchorRect SelectionRect { get; set; }

Property Value

PopupAnchorRect

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

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

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

HandleDiscard()

Declaration

cs-api-definition
public void HandleDiscard()

HandleInsertAsync()

Declaration

cs-api-definition
public Task HandleInsertAsync()

Returns

Task

HandlePromptChangedAsync(string)

Declaration

cs-api-definition
public Task HandlePromptChangedAsync(string prompt)

Parameters

prompt

string

Returns

Task

HandleReplaceAsync()

Declaration

cs-api-definition
public Task HandleReplaceAsync()

Returns

Task

OnAfterRenderAsync(bool)

Declaration

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

Parameters

firstRender

bool

Returns

Task

Overrides BaseComponent.OnAfterRenderAsync(bool)

OnParametersSet()

Declaration

cs-api-definition
protected override void OnParametersSet()

Overrides ComponentBase.OnParametersSet()

OpenAsync()

Declaration

cs-api-definition
public Task OpenAsync()

Returns

Task

SetParametersAsync(ParameterView)

Declaration

cs-api-definition
public override Task SetParametersAsync(ParameterView parameters)

Parameters

parameters

ParameterView

Returns

Task

Overrides ComponentBase.SetParametersAsync(ParameterView)

ToggleCommandsMenuAsync()

Declaration

cs-api-definition
public Task ToggleCommandsMenuAsync()

Returns

Task