Class AssistViewFooterToolbar
Represents the footer toolbar for an assist view in an SfAIAssistView, hosting one or more toolbar items alongside the prompt area.
Inherited Members
Namespace: Syncfusion.Blazor.InteractiveChat
Assembly: Syncfusion.Blazor.dll
Syntax
public class AssistViewFooterToolbar : OwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Remarks
Exposes a ToolbarPosition to control its placement and an ItemClick event callback. Integrates with the parent assist view via the cascading Syncfusion.Blazor.InteractiveChat.AssistViewFooterToolbar.BaseParent parameter.
Examples
The following example demonstrates how to declare and configure an AssistViewFooterToolbar inside an AssistView of an SfAIAssistView:
@using Syncfusion.Blazor.InteractiveChat
<SfAIAssistView>
<AssistViewFooterToolbar ToolbarPosition="ToolbarPosition.Inline"
ItemClick="OnFooterItemClick">
</AssistViewFooterToolbar>
</SfAIAssistView>
@code {
private Task OnFooterItemClick(AssistViewToolbarItemClickedEventArgs args)
{
// Handle footer toolbar item click here...
}
}
Constructors
AssistViewFooterToolbar()
Declaration
public AssistViewFooterToolbar()
Properties
ItemClick
Event is raised when clicking the footer toolbar item in the SfAIAssistView component.
Declaration
[Parameter]
public EventCallback<AssistViewToolbarItemClickedEventArgs> ItemClick { get; set; }
Property Value
| Type |
|---|
| EventCallback<AssistViewToolbarItemClickedEventArgs> |
Remarks
This event is triggered when clicking the footer toolbar item in the SfAIAssistView 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 AssistViewFooterToolbar component.
Declaration
protected override Task OnParametersSetAsync()
Returns
| Type | Description |
|---|---|
| Task | A System.Threading.Tasks.Task representing any asynchronous operation. |