Class InlineToolbar
Represents the inline toolbar for the SfInlineAIAssist, hosting one or more toolbar items alongside the prompt area.
Inherited Members
Namespace: Syncfusion.Blazor.InteractiveChat
Assembly: Syncfusion.Blazor.InteractiveChat.dll
Syntax
public class InlineToolbar : OwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Remarks
Exposes a ToolbarPosition to control its placement and an ItemClick event callback. Integrates with the parent inlineaiassist via the cascading Syncfusion.Blazor.InteractiveChat.InlineToolbar.BaseParent parameter.
Examples
The following example demonstrates how to declare and configure an InlineToolbar inside the SfInlineAIAssist component.
@using Syncfusion.Blazor.InteractiveChat
<SfInlineAIAssist>
<InlineToolbar ToolbarPosition="ToolbarPosition.Inline"
ItemClick="OnFooterItemClick">
</InlineToolbar>
</SfInlineAIAssist>
@code {
private Task OnFooterItemClick(InlineToolbarItemClickedEventArgs args)
{
// Handle footer toolbar item click here...
}
}
Constructors
InlineToolbar()
Declaration
public InlineToolbar()
Properties
ItemClick
Event is raised when clicking the footer toolbar item in the SfInlineAIAssist component.
Declaration
[Parameter]
public EventCallback<ToolbarItemClickEventArgs> ItemClick { get; set; }
Property Value
| Type |
|---|
| EventCallback<ToolbarItemClickEventArgs> |
Remarks
This event is triggered when clicking the footer toolbar item in the SfInlineAIAssist component.
ToolbarPosition
Gets or sets the position of the footer toolbar in the editor.
Declaration
[Parameter]
public ToolbarPosition ToolbarPosition { get; set; }
Property Value
| Type | Description |
|---|---|
| ToolbarPosition | A ToolbarPosition specifying where the footer toolbar is rendered relative to the edit area. The default value is Inline. |
Remarks
Set this property to control whether the footer toolbar is displayed inline within the editor's content area or at another supported position.
When set to Inline, the toolbar is rendered at the bottom of the edit area and participates in the editor's layout flow.
Methods
BuildRenderTree(RenderTreeBuilder)
Declaration
protected override void BuildRenderTree(RenderTreeBuilder __builder)
Parameters
| Type | Name | Description |
|---|---|---|
| RenderTreeBuilder | __builder |
Overrides
Dispose(bool)
Dispose unmanaged resources in the Syncfusion Blazor component.
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing | Boolean value to dispose the object. |
Overrides
OnInitializedAsync()
Method invoked when the component is ready to start.
Declaration
protected override Task OnInitializedAsync()
Returns
| Type | Description |
|---|---|
| Task | A System.Threading.Tasks.Task representing any asynchronous operation. |
Overrides
OnParametersSetAsync()
Handles parameter updates for the InlineToolbar component.
Declaration
protected override Task OnParametersSetAsync()
Returns
| Type | Description |
|---|---|
| Task | A System.Threading.Tasks.Task representing any asynchronous operation. |