Class InlineToolbarItem
Represents an individual toolbar item rendered within the InlineToolbar of the SfInlineAIAssist component.
Inherited Members
Namespace: Syncfusion.Blazor.InteractiveChat
Assembly: Syncfusion.Blazor.InteractiveChat.dll
Syntax
public class InlineToolbarItem : OwningComponentBase, IComponent, IHandleEvent, IHandleAfterRender, IDisposable
Remarks
Use this class to define individual items within the InlineToolbar of the SfInlineAIAssist component.
Examples
The following example shows how to add an aligned toolbar item inside the inline toolbar:
@using Syncfusion.Blazor.InteractiveChat
@using Syncfusion.Blazor.Navigations
<SfInlineAIAssist>
<InlineToolbar ToolbarPosition="ToolbarPosition.Inline">
<InlineToolbarItem Text="Send" IconCss="e-icons e-send" />
</InlineToolbar>
</SfInlineAIAssist>
Constructors
InlineToolbarItem()
Declaration
public InlineToolbarItem()
Properties
Align
Gets or sets the location for aligning toolbar items on the toolbar.
Declaration
[Parameter]
public ItemAlign Align { get; set; }
Property Value
| Type | Description |
|---|---|
| ItemAlign |
Remarks
If the ItemAlign is Left, the toolbar item aligned from left side of toolbar.
If the ItemAlign is Center, the toolbar item aligned from center of toolbar.
If the ItemAlign is Right, the toolbar item aligned from right side of toolbar.
Each item will be aligned according to the Align property.
CssClass
Gets or sets the CSS class of the toolbar item in the SfInlineAIAssist component.
Declaration
[Parameter]
public string CssClass { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The CSS class of the toolbar item. The default is an empty string. |
Remarks
This property specifies the CSS class for the InlineToolbarItem in the SfInlineAIAssist component.
Disabled
Gets or sets a value indicating whether the toolbar item is disabled in the SfInlineAIAssist component.
Declaration
[Parameter]
public bool Disabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | A boolean value indicating whether the toolbar item is disabled. The default is |
Remarks
This property specifies whether the InlineToolbarItem is disabled in the SfInlineAIAssist component.
IconCss
Gets or sets the icon CSS for the InlineToolbarItem in the SfInlineAIAssist component.
Declaration
[Parameter]
public string IconCss { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The CSS class for the icon. The default is |
Remarks
This property specifies the CSS class for the icon used in the InlineToolbarItem.
TabIndex
Gets or sets the tab order of the toolbar items in the SfInlineAIAssist component. When assigned positive values, it allows switching focus to the next/previous toolbar items using the Tab/Shift+Tab keys. If the value is set to 0 for all toolbar items, the tab order switches based on the element's order in the DOM.
Declaration
[Parameter]
public int TabIndex { get; set; }
Property Value
| Type |
|---|
| int |
Template
Gets or sets a template that defines the appearance of the toolbar item in the SfInlineAIAssist component.
Declaration
[Parameter]
public RenderFragment Template { get; set; }
Property Value
| Type | Description |
|---|---|
| RenderFragment | A RenderFragment representing the template for the toolbar item. The default is |
Remarks
This property specifies the template used to render the appearance of the InlineToolbarItem in the SfInlineAIAssist component.
Text
Gets or sets the text of the toolbar item in the SfInlineAIAssist component.
Declaration
[Parameter]
public string Text { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The text of the toolbar item. The default is |
Remarks
This property specifies the text for the InlineToolbarItem in the SfInlineAIAssist component.
Tooltip
Gets or sets the tooltip of the toolbar item in the SfInlineAIAssist component.
Declaration
[Parameter]
public string Tooltip { get; set; }
Property Value
| Type | Description |
|---|---|
| string | The tooltip of the toolbar item. The default is an empty string. |
Remarks
This property specifies the tooltip for the InlineToolbarItem in the SfInlineAIAssist component.
Type
Gets or sets the type of the toolbar item in the SfInlineAIAssist component.
Declaration
[Parameter]
public ItemType Type { get; set; }
Property Value
| Type | Description |
|---|---|
| ItemType | The type of the toolbar item. The default is |
Remarks
This property specifies the type for the InlineToolbarItem in the SfInlineAIAssist component.
Visible
Gets or sets a value indicating whether the toolbar item is visible in the SfInlineAIAssist component.
Declaration
[Parameter]
public bool Visible { get; set; }
Property Value
| Type | Description |
|---|---|
| bool | A boolean value indicating whether the toolbar item is visible. The default is |
Remarks
This property specifies whether the InlineToolbarItem is visible in the SfInlineAIAssist component.
Methods
Dispose(bool)
Declaration
protected override void Dispose(bool disposing)
Parameters
| Type | Name | Description |
|---|---|---|
| bool | disposing |
Overrides
OnInitializedAsync()
Declaration
protected override Task OnInitializedAsync()
Returns
| Type |
|---|
| Task |